JIRA CLI RunFromCsv - Can this be used for uploading users and project roles

Venkat Nagarajan October 14, 2016

I am looking to do the equivalent of "addUserToGroupWithFile" but for adding multiple project roles to an existing user (and want to process this in bulk from a file).

Example: User1 for project ABC has the roles of administrators,users  (and the user already exists in JIRA).

Clarifications:

  1. Is combining "Runfromcsv" with "addProjectRoleActors" an option? (Can you help with the syntax?)
  2. Are there other functions that I can readily use?

 

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
October 14, 2016

runFromCsv is a general capability to run any actions. See this question for further discussions.

0 votes
Venkat Nagarajan October 14, 2016

Will this work?

jira --action runFromCsv --common "--action addProjectRoleActors --project "PROJECTID" --role "users" --userId" --file sample.csv

Suggest an answer

Log in or Sign up to answer