youngmon/atlassian-qna huggingface dataset:
Can we provide Jira project access to users using REST APIs?
Asked by Prasad_Biddika:

Hi, thanks for your help.

1)Can we provide Jira project access to users using APIs?

2)Can we revoke Jira project access to users using APIs

3)can we know the list of projects that a particular user has using REST APIs?

Please help with the same.

Thanks


Answers:
author: Prachi Bolar
body: Hi Prasad,

Welcome to Community,

Please check this : <https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors/#api-group-project-role-actors>

This should help you give access via project roles in Jira.

<https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-group-projects> ( Returns all projects visible to the user)

Thank You,

Prachi


author: Florian Bonniec
body: Hi [@Prasad_Biddika](/t5/user/viewprofilepage/user-id/5209355)

User can use the REST API, by default.

If you want to block API usage, I guess you will need an app such as API Token, configure it to only allow API call using Token and block the one using the basic authentication.This app allow also you to manage active token and who can create tokens. It will be valid for the entire instance and not just a project.

Regards

comments: author: prasad biddika
body: [@Florian Bonniec](/t5/user/viewprofilepage/user-id/495589) we want to provide jira projects access using Rest APIs is it possible?


author: Florian Bonniec
body: Hi

It will depends how you wan to manage permission, but you could add user to project role with teh REST api.

[Jira 9.13.0 (atlassian.com)](https://docs.atlassian.com/software/jira/docs/api/REST/9.13.0/#api/2/project/{projectIdOrKey}/role-addActorUsers)

Regards


Tags: data-center

jira-data-center
Jira DC / count members in multi select group
Asked by sylvain_lanthier2_bell_ca:

Hello,

I'm trying to update a "Number" custom field with the total count of members present in all selected groups within an issue.

Do you have any suggestions for how I can achieve this?

Regards!


Answers:
author: Samuel Gatica
body: Hi [@sylvain_lanthier2_bell_ca](/t5/user/viewprofilepage/user-id/1159471)

Unfortunately, Jira doesn't directly provide a way to count users in a group via JQL.

As an alternative solution, you can achieve this by utilizing **Automation** and the "[**Lookup**](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues)" action to retrieve group members.

* Add a "Lookup" Action to Fetch Group Members: Add a "Lookup issues" action (this will allow you to perform additional logic). Use a JQL to retrieve issues that match your criteria, including the ones with the groups you're interested in.
* Calculate the Total Count of Group Members: Use a smart value to calculate the total number of members across the selected groups.

  * {{issue.customfield_XXXX.size}}
* Update the "Number" Custom Field: Add an "Edit Issue" action to update the "Number" custom field with the calculated count.

  * {{#=}} {{issue.customfield_XXXX.size}} {{/}}

Hope this helps!

Best regards

Sam


Tags: cloud

jira-data-center
JQL Data Pull in Excel
Asked by Frank Wilson:

Is there a way to pull the "Key" field in an Excel query without it automatically putting in the hyperlink to the issue? Waiting for Excel to create the hyperlink is slowing down my daily data pulls in Excel.


Answers:
author: Benito Jim?nez _Sevidev_
body: Hello [@Frank Wilson](/t5/user/viewprofilepage/user-id/4455650)! How are you performing the export? I understand it's from the issue search screen, selecting Export issues / Export Excel CSV, right?  
Can you elaborate on the steps you're following?

Kind regards.

comments: author: Frank Wilson
body: Actually, I am using the JIRA add in tool in excel and doing a query / data pull from within Excel. It works well, but it is takes several extra minutes to pull data because Excel wants to add the hyperlink to each issue key. I would love to have a way to tell the JIRA Excel add in to not pull the hyperlinks. I do need the issue key itself, but I just don't need it to be hyperlinked back to Jira.


author: Benito Jim?nez _Sevidev_
body: Thank you for the information [@Frank Wilson](/t5/user/viewprofilepage/user-id/4455650) I now understand that you are using the ["Jira Cloud for Excel" add-in for Microsoft Excel.](https://appsource.microsoft.com/en-us/product/office/WA200000556?tab=Overview)

<br />

As far as I can see, there is no way to configure it to export the IssueKey field without a link. However, I don't think this feature should make the process much slower.  
Two alternatives come to mind:

* Use the IssueID field, although it's clearly less descriptive than the IssueKey.
* Manually export the issues by going to the issue search screen and selecting Export issues / Export Excel CSV. However, I believe this option is more time-consuming and difficult than the one you're currently using.

Hope this can help you.

Kind regards.


author: Frank Wilson
body: While checking to see whether I can use the IssueID field, I did a test spreadsheet and I noticed the same search query that normally takes 3 to 5 minutes ran in just a few seconds in the temporary spreadsheet. It likely is due to my more complex datasheet and the autocalc function. So I am going to take a different approach where I pull the data in a simple spreadsheet and then have the more complex spreadsheet map to the simple spreadsheet. Thank you for getting me to try a different approach!


Tags: cloud

jira-cloud

ms-excel
Automation: "Could not find usernames"
Asked by Adam Proch?zka:

Hello, I have a automation setup, which I am using to bulk update number of tickets (triggered manually). We have a **User Picker (multiple users)** field in the tickets, to which I am appending a value using the rule.

The automation rule is

1. When: Scheduled Condition (JQL)
2. Then: Edit issue fields
   1. Custom User Picker (multiple users) field  
      1. Set value
         1. User + {{issue.customfield_\<ID\>}} (smart value)

The automation worked properly on 700 tickets while it failed on aprox. 200 tickets with error message **\<issue key\> Could not find usernames: JIRAUSER\<ID\>, JIRAUSER\<ID\>, JIRA\<ID\> (customfield_\<ID\>))** for each ticket, where it failed. The custom field in question is the field I am trying to update.

The issue is that most (if not all) of the users that "cannot be found" are normal working user accounts.  
I have searched through API j*ira.OurURL.com/rest/api/2/user?key=JIRAUSER\<ID\>* to confirm the users in question and they are normally active.

I have encounter the same issue before with different users but only on handful of tickets, which could have been adjusted manually by removing the "blocked" users from the field, adding the back and running the automation again, but this is such a higher number of tickets, I would like to find a more systematic solution.

Does anybody have any idea, how to resolve this issue? Thank you.


Answers:
author: Florian Bonniec
body: HI [@Adam Proch?zka](/t5/user/viewprofilepage/user-id/4590146)

Could it be related to this [KB](https://confluence.atlassian.com/jirakb/how-to-display-the-username-correctly-from-the-user-picker-field-via-automation-for-jira-data-center-smart-values-1157465038.html#:~:text=Replace%20customfield_10000%20to%20the%20custom%20field%20id%20from,users%20correct%20username%20instead%20of%20%22%20JIRAUSERXXXX%20%22.) ?

Regards

comments: author: Adam Proch?zka
body: Hello [@Florian Bonniec](/t5/user/viewprofilepage/user-id/495589), thank you for your reply and the find. It might be possibly related, however I cannot figure out, how to apply the workaround provided in the KB to my case. I cannot use # in my smart value and Enable the rule.

Furthermore, the KB article centers around not returning list of usernames, but user ID when trying to edit a field. That would imply automation recognizes the users, just returns their list in incorrect format.

My issue is, that the tickets are not edited at all, not recognizing the user ID leading me to believe that something else might be in play.

I could be interpreting the KB incorrectly and it contains my answer, I just cannot figure out how. Any ideas? Thank you.


Tags: automation

jira-server

server
Automation "Comment issue" is not workin with another automation
Asked by ????? ?????:

Hi!

I have an automation **rule A** that creates a new task in the project.

![?????? ?????? 2024-08-16 ? 13.15.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/342131iDF5F853BDF97A378/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 13.15.14.png")

And there is an automation **rule B** that creates a comment about creating a new task.

![?????? ?????? 2024-08-16 ? 13.14.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/342130i5023128041621B3C/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 13.14.19.png")

**Problem**: A comment is not created if the task was created through automation A.

If I create a task manually in the project via the "Create" button, then the rule works and a comment is created.

Help, please!


Answers:
author: Walter Buggenhout
body: Hi [@????? ?????](/t5/user/viewprofilepage/user-id/5535112),

Check the *rule details* page of your automation rule that should add the comment. At the bottom of that page, you can enable a check box so the rule responds to actions triggered by other automation rules:

![Screenshot 2024-08-16 at 13.32.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/342136i764E950975E00583/image-dimensions/307x52?v=v2 "Screenshot 2024-08-16 at 13.32.16.png")My guess is this check is currently not enabled and so your rule does not respond to other automated actions.

Hope this helps!


author: Jack Brickey
body: Hi [@????? ?????](/t5/user/viewprofilepage/user-id/5535112) , you need to be sure to select the checkbox in rule B details to allow the rule to be triggered by another automation rule.


author: ????? ?????
body: Thank you both!


Tags: automation

cloud

jira-cloud
Field Permission
Asked by Ghulam Sarwar:

There is a field named "original estimate"  

there is no option in the permission scheme where I can restrict users to edit this field (only a few people) will be able to edit the original estimate field   
I am using a free plan, will this option be available in paid plan?


Answers:
author: Walter Buggenhout
body: Hi [@Ghulam Sarwar](/t5/user/viewprofilepage/user-id/5568833) and welcome to the Community!

No, restrictions on editing individual fields is not even available as a permission setting on a paid plan. Permissions are available at the issue level, but not on separate fields.

If you use company managed projects, you could develop a workaround using some clever workflow design in combination with equally clever screen design. If you don't put the *time tracking* custom field on your edit issue screen - only on the view issue screen and configure a workflow transition with a transition screen attached to it that h?s that field on it, you could apply permission restrictions on that workflow transition, so only people belonging to a certain group, role, ... (as an example) could execute that transition and - as a consequence - edit the field. However, since the time tracking field combines multiple fields related to time tracking (not only original estimate), you might find yourself facing other problems when it comes to logging work or updating the remaining estimate as well.

So, just saying that there might be options, but that these are somewhat complex and may have more downsides than benefits.

Hope this helps!


author: Jack Brickey
body: Hi [@Ghulam Sarwar](/t5/user/viewprofilepage/user-id/5568833) , OE is part of time tracking and there is not a permission specifically for this. You can remove the field from the screen but that would remove for all which I am sure is not your goal.


Tags: cloud

jira-cloud
Restrict the users who can transition issues on a Kanban board Using a List of Users
Asked by RIchard Gwatkin:

I have a Kanban board which manages issues moving through an approval process.

I want to restrict the ability to change the status of issues on the board to a subset of the list of users in the project.

I cannot apply the restriction to all of the Jira project as other boards and teams use the same Jira project.

Instead i want to use an automation rule based on the issue type and label meeting a condition and reverting the issue to it's previous state should anyone who is not in the approved list of users try to transition an issue.

Is this possible? Help and advice appreciated.


Answers:
author: Nikola Perisic
body: Hello [@RIchard Gwatkin](/t5/user/viewprofilepage/user-id/4351460) instead of using the automation rule to restrict certain users to transition the issues, you can use the Transition issues permission in your project - just make sure that the users you do not want to transition the issues are not part of the project roles that you have defined to have this permission.

comments: author: RIchard Gwatkin
body: Thanks i will give that a try


Tags: automation-rules

cloud

jira-cloud

restriction
How to restrict transition step in workflow
Asked by Kypta_ Jan_ Ing_:

I want to allow a status change from "Closed" to "In Progress" only for a group of administrators

How to do it?

Thanks


Answers:
author: Joe Pitt
body: I use the user in project role condition

Look at <https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/>


Tags: cloud

jira-cloud

jira-cloud-administration

not-applicable
Custom fields are not copied when creating a task through automation
Asked by ????? ?????:

Hi!

I have made the following automation rule:

![?????? ?????? 2024-08-16 ? 12.51.07.png](/t5/image/serverpage/image-id/342118i3BF0E1EFBEF848A6/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 12.51.07.png")

1. When a task in project A reaches a certain status, a task in project B is created.

2. When creating a task in project B, some filled-in fields are copied from the task of project A:

![?????? ?????? 2024-08-16 ? 13.02.28.png](/t5/image/serverpage/image-id/342119i95D41468E64CF754/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 13.02.28.png")

3. I get an error in the log: Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored

![?????? ?????? 2024-08-16 ? 12.51.00.png](/t5/image/serverpage/image-id/342128i470A7E001B018F7D/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 12.51.00.png")

4. I checked the settings of the custom fields and they are associated with project A and project B and with their screens.

5. Here is an example that the error field "?????? ?????? (customfield_10195)" is in both projects:

![?????? ?????? 2024-08-16 ? 13.06.12.png](/t5/image/serverpage/image-id/342129i545B5521340B2274/image-size/large?v=v2&px=999 "?????? ?????? 2024-08-16 ? 13.06.12.png")

**What else do I need to set up?**


Answers:
author: Walter Buggenhout
body: Hi [@????? ?????](/t5/user/viewprofilepage/user-id/5535112),

The fields you are trying to copy must also be present on the create issue screen of the issue type you are creating in the target project.

Hope this helps!

comments: author: ????? ?????
body: All the necessary fields exist in the first and second projects. I added them by myself.

I found that one custom field was able to get into a new task.

I checked the settings with the fields that did not appear - the settings seem to be the same.

Dont know what I have to check next (


author: Walter Buggenhout
body: Check *Project Settings \> Screens* in the target project of your automation rule. Look at the screens associated with the issue type you are trying to create, more specifically the screen linked to the **create** operation. Make sure that the fields that are mentioned in the error log are present on that specific screen.


author: ????? ?????
body: It helps!

Thank you!


author: Luka Hummel - codefortynine
body: Hi [@????? ?????](/t5/user/viewprofilepage/user-id/5535112)

If you are having trouble creating new issues in another project while copying custom field values, you could also try our app [Deep Clone for Jira](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2786472).

You can also integrate Deep Clone in your existing Jira Automation. Read more on this [here](https://documentation.codefortynine.com/deep-clone-for-jira/jira-automation#AutomationforJiraviaWorkflows-HowtoTriggerDeepCloneFromJiraAutomation(Company-managed)?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2786472).


Tags: automation

cloud

jira-cloud
Pipeline: Pipeline is required - getting this error while creating an issue
Asked by Rajshekhar Gandigudi:

Pipeline: Pipeline is required - getting this error while creating an issue


Answers:
author: Nikola Perisic
body: Hello [@Rajshekhar Gandigudi](/t5/user/viewprofilepage/user-id/5569752) , this indicates that the field named Pipelines is required before you make an issue.Make sure to check your field configuration scheme for that project. Also, check your workflow and the Create transition and look if the validator has this field as required. If it does, remove it from the validator and publish your draft.

comments: author: Rajshekhar Gandigudi
body: Thanks for the reply. Do I need admin rights for this?


author: Nikola Perisic
body: Yes, you need to be Jira admin. Meaning you need to have the Administer Jira global permission.


Tags: cloud

jira-cloud
Data Management Attachments
Asked by Marcel Kaiser:

Hi, I have not found anything explicit in the documentation. We would like to know how the attachment management is structured. Are the attachments only usable on the respective site during a migration or are attachments managed at Org level to save storage space?


Answers:
author: Trudy Claspill
body: Hello [@Marcel Kaiser](/t5/user/viewprofilepage/user-id/4696738)

Can you provide more context for your question?

What problem are you trying to address with this question?

You mentioned "during a migration". What does the migration process have to do with your question?


Tags: cloud

jira-cloud
Epic in progress filter
Asked by Erin Gaunt:

Hi all,

Does anyone know the filter that would sit behind the "Epics in Progress" Insight? (ie the epics that the stories and tasks belong to in current sprint).

Note that this "Insight" is picking up the epics when the epic itself is NOT in progress.

We are on Premium Jira Cloud if that helps.

I'd like to recreate it for a dashboard

![Screenshot 2024-08-16 134303.png](https://community.atlassian.com/t5/image/serverpage/image-id/342071iCDD4D56895B1DAD8/image-size/large?v=v2&px=999 "Screenshot 2024-08-16 134303.png")


Answers:
author: Danut M _StonikByte_
body: Hi [@Erin Gaunt](/t5/user/viewprofilepage/user-id/5502814),

I'm afraid that it is not possible to display that in a dashboard by using Jira's native gadgets. The most you can do is a table like the one mentioned by [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516), but that does not display percentages and it is based on statuses, not status categories.

An alternative would be to search on Atlassian Marketplace for an app that offers such functionality.

If you are willing to install an app, our [Great Gadgets](https://marketplace.atlassian.com/search?query=stonikbyte%20great%20gadgets%20agile) app has a **Pivot Table \& Pivot Chart gadget** that can display % completion for the epics.

It can calculate epic progress by number of issues within the epic, or by sum of story points of the issues in the epic.

The result can be displayed as a table, heat-map table or chart of various types.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/342317i4DAFCB9E80D1D629/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/342318iC04A52FBD8C2FD99/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/342326i18775101EFD9BEC7/image-size/large?v=v2&px=999 "image.png")

Danut.


author: Lisa Forstberg
body: Hi [@Erin Gaunt](/t5/user/viewprofilepage/user-id/5502814) ,

It looks really neat in Insights and I too would like to see this as a gadget a Dashboard, but its not there yet.

The closest I get is to use the two dimensional filter statistic gadget. Choose a filter in which you fetch all issues in the sprint like JQL **SprintIN openSprints()**plus add more conditions to suit your scope.

Then X axis Status and Y axis Parent/Epic Link

Its not as pretty, no progress bars or %, just numbers I'm afraid. Example:

![Screenshot 2024-08-16 at 09.33.23.png](https://community.atlassian.com/t5/image/serverpage/image-id/342089i1E1908CAFB8261AD/image-size/large?v=v2&px=999 "Screenshot 2024-08-16 at 09.33.23.png")

Other options

1. Explore building views in Plans to guide your users there instead of a dashboard
2. Go to marketplace to find yourself an APP that offers more functionality in [reporting](https://marketplace.atlassian.com/search?category=Reports&hosting=cloud&product=jira) to extend your dashboard features.

best of luck

Lisa

comments: author: Erin Gaunt
body: Thanks Lisa


Tags: cloud

jira-service-management-cloud
Accidently Created Another Domain
Asked by Joshua Hastie:

Hello, I am brand new to Atlassian products. I had a domain verified and then somehow I managed to created a new domain at companyname.atlassian.net

Is there anyway to undo this as I actually only want to have the one domain?

I have tried logging into the other person with domain admin access but the second site does not appear on her login; so I assume it is something I have accidently created with my own account.

Any help would be great. Sorry in advance if this question has already been answered elsewhere.

Thanks


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Joshua Hastie](/t5/user/viewprofilepage/user-id/4938025) ,

welcome to the Altassian community!

Here an article that explains how to manage domains <https://support.atlassian.com/user-management/docs/verify-a-domain-to-manage-accounts/>

In my opinion, you need to associate all the existing user accounts to the previous domain (because your user is currently land to the new wrong domain) an then remove your wrong domain.

Hope this helps,

Fabio


Tags: administration

duplicate
Search restrictions in JQL
Asked by ?? ?:

In Jira Work Management automation rules I'm using an issue search for an action. The description of the issue search action states "Search for up to 100 issues using JQL and include the results list in other actions by using the {{lookup Issues}} smart value." Does this mean that you can only search for up to 100 issues? Or does it return up to 100 search results?


Answers:
author: Dave Mathijs
body: Hi [@?? ?](/t5/user/viewprofilepage/user-id/4679103) , isn't the result the same? Search for 100 issues max will display 100 search results max.

Search for unlimited issues will also display 100 search results max.

comments: author: John Funk
body: Regardless, I think the answer is Yes.


author: ?? ?
body: After all, does that action mean you can search for over 100 issues?

Does that mean there is no limit to the number of searches?


author: John Funk
body: You can search in general for more than 100 issues. Or you can use a JQL in your rule that returns more than 100 issues. But the #lookupIssues functionality will only process 100 issues.


author: ?? ?
body: Do you mean to list up to 100 issues for the issues searched by JQL?


author: John Funk
body: Yes, that's the most that could be listed.


author: Pablo Etcheverry
body: Hi, I have a question. Why the limit is 100? Is there a way to get a list of issues than are more that 100 in automation?


Tags: cloud