How to find issues based on "summary" value and update issue using JiraJelly

Pascal Collard December 23, 2011

Hi;
I need to update about 150 issues programmatically based on the "summary" field of issues.

Is it possible, using JiraJelly, to:

  • do a search for an issue based on it's summary value
  • return the issue KEY
  • edit the issue

Something like:

<jira:search field="summary" value="issue summary value to find" issueKey="issueID"/>
<jira:update key="${issueID}" field_to_update="value to set">

Thanks

1 answer

1 accepted

0 votes
Answer accepted
NielsJ
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.
December 27, 2011

All available Jelly tags for JIRA are listed there: http://confluence.atlassian.com/display/JIRA/Jelly+Tags. Jelly core tags are documented there: http://commons.apache.org/jelly/tags.html

I tried updating issue fields by Jelly some time but it was a real headache. There are currently no Jelly tags that support field updates. So you have to use generic Jelly tags and call JIRA's API for field updates. That is really awful and error-prone.

If you want to update those 150 issues only once, the best would be to do it manually :-) If this should be done on a regular basis, you should consider writing a plugin to use the JIRA API directly (and not through Jelly). Maybe a service module is an option for you.

Pascal Collard January 1, 2012

Thank you Niels

Suggest an answer

Log in or Sign up to answer