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: 

JIRA CLI Can I update an issue referencing a custom field, rather than the issue key?

James Hall
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!
April 23, 2014

Hi Bob et al,

I have a 10k issue project to track, and I would love to be able to do the CLI actions by referencing one of my custom variables, or the standsard Summary field, rather than the issue id. Is this possible?

Is it possible to change the issue id if I keep them unique?

E.g. instead of ... addComment --issue SST-115 --comment "hey yo"

I would like to update with something like addComment --Summary '1123434' ...

Currently I thought I would just dump all issue details into a csv using --action getIssueList --project SST_Test > AllIssues.csv and then use Ruby to match the issue key to my unique custom field, and run the updates from there.

Any help or suggestions would be appreciated,

James

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
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.
April 25, 2014

Perhaps if you create a JQL query that finds all the issues (or just one) that that matches your custom field value or summary value (etc....), then you can easily do something like:

--action runFromIssueList --search "<jql>" --common "--action addComment --issue @issue@ --comment ""<comment>"" "

TAGS
AUG Leaders

Atlassian Community Events