Forums

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

JIRA CLI Syntax - Bulk Version Release

Brian Hourigan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2019

I'm currently working on a JIRA migration, , and one of the issues I came across was that after importing my issues into the new instance, all my previous Versions were showing as Unreleased.

I'm attempting to use JIRA CLI to fix this issue, and my goal is to bulk set all of my Versions to "Released".  I was attempting to use a wildcard character like an asterisk, but the syntax does not seem to recognize that.

Here is the command I was trying to use:

./jira.sh --action releaseVersion --project "Radnor" --dateFormat "dd/MMM/yyyy" --description "Bulk release for JIRA Migration" --version "*"

However, I just get an error that says  "Client error: '*' is not a version for project RAD."

Any insight on how I can apply this command to all my Versions?

1 answer

1 accepted

0 votes
Answer accepted
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 13, 2019

UPDATED

Hi @Brian Hourigan - The version parameter doesn't accept matching arguments such as "*".  The way to approach this is to use runFromVersionList to release the versions from the list.

Example:

--action runFromVersionList --project "ZJIRACLIRUNNER" --common "-a releaseVersion --project ZJIRACLIRUNNER --version \\"@version@\\"" --continue

 

Brian Hourigan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2019

Thanks for your answer Michael, that was very helpful! I just had to make one tweak in that I used a single \ instead of \\. I was getting an error with the double slashes, but all is working now. 

Appreciate your help!

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 13, 2019

Happy to help @Brian Hourigan

Would you mind accepting my answer so this thread is closed?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events