Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to generate a list of projects with groups/roles granted access to it?

Mark_Holdread August 14, 2019

I need to generate a list containing all projects with all groups/users with access to the respective projects.  Manually opening each project, one-by-one is quite laborious and time consuming.  A simple report or listing would be tremendously helpful.  I cannot seem to find a way to generate such a list.  I'm hoping that I'm simply overlooking something.

1 answer

0 votes
Michael Kuhl {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2019

 

Hi @Mark_Holdread - You cannot do that out of the box with Jira, but you can do it with the Bob Swift Jira CLI

Here's the action you would use with the Jira CLI:

--action runFromProjectList --common "-a getProjectRoleActorList --project \\"@project@\\" --role \\"@all\\" --outputFormat 2"
Mark_Holdread August 15, 2019

Thanks for the tip.

I have installed the CLI.  Tested it successfully, per the apps instructions; however, when I attempt your action above, I receive the following:

Run: -a getProjectRoleActorList --project \BHCM\ --role \@all\ --outputFormat 2

Remote error: Invalid request. Response code: 400. Use -v to see more details.

Client error: 1 actions failed

BHCM is the project in the list, so it started to work, but choked on the all?

I'm new to APIs and not certain how to change it.  I added an extra at symbol similar to the ones wrapped around the project parameter.  I injected -v everywhere I could think, but the errors just increased.  I removed the --role parameter, but evidently this function requires a non-blank value for that very parameter.

Any additional advice would be much appreciated.

Thanks,

Mark

Michael Kuhl {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2019

Hey @Mark_Holdread I omitted a couple of standard arguments from the line.  It assumed that your Jira script has the Jira server and login credentials set in it.  Here's a complete version of the action:

--action runFromProjectList -s https://jira.examplegear.com --user admin --password admin --common "-a getProjectRoleActorList --project \\"@project@\\" --role \\"@all\\" --outputFormat 2"

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events