How to get a list of all members in a project and then create issue for each of them?
Hello @angela 😁,
The most accurate way to find the users of a project is to search for the roles within the project and go one by one by making a call to the api. Example: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles/#api-rest-api-3-project-projectidorkey-role-get
Inside this call you will see all the links to get the users by role. From there you can go through the array of the response and in the creation of the issue add the following object in the JSON:
I hope you found it useful.
Greetings, Jose Juan
Greetings.
Hi @angela ,
With the help of Jira Command Line Interface ( ( https://marketplace.atlassian.com/apps/6398/jira-command-line-interface-cli?hosting=cloud&tab=overview), you will be able to achieve the above requirement.
1. Using the ACLI action below, you will be able to list all the project members for a specific project.
--action getProjectRoleActorList --project AT --role @all --columns 1,2,6
2. you can also use the below acli action to write the above data into the CSV file.
--action getProjectRoleActorList --project AT --role @all --columns 1,2,6 --file userslist.csv
3. By using CSV, you can create bulk issues using acli. Please refer below article for more details.https://appfire.atlassian.net/wiki/spaces/SUPPORT/pages/89144847/How+to+create+issues+in+bulk+from+a+CSV+file+using+Jira+Command+Line+Interface+CLI
Thanks,Avinash
It looks like you're new here. Sign in or register to get started.