The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Change workflow scheme for many project using CLI or Script runner

fjodors
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 Champions.
February 10, 2014

Hello

I'd like to change workflow scheme for many project.

I checked articles and I see that CLI (command line interface) allows to change project schemes- i can execute command like this

--action updateProject --project "<projectKey>" --workflowScheme <workflowschemeID>

but how can I execute this command for many projects?

is there something like

--action updateProject --project IN ("<projectKey>", ...) --workflowScheme <workflowschemeID>

?

2) is it possible to create the same function in Script runner?

Thanks,

Fyodor

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Bob Swift
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 Champions.
February 10, 2014

Use runFromProjectList, runFromList, or similar to run the same action against a number of projects. You would use the @project@ replacement variable. In the case of workflow schemes, the scheme must be compatible with the existing scheme (no issue migrations required).

0 votes
fjodors
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 Champions.
February 16, 2014

Hi Bob

Thank you for advice, unfortunately my changing scheme procedure is asking about issue migration also. So I am going change schemes manually or directly in database.

Thanks,

Fyodor

TAGS
AUG Leaders

Atlassian Community Events