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.
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"
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.