How to create and clone issue based on field value?

Ewa Boloczko May 24, 2017

I use script runner to "Clone an issue and link". The script is based on the Project and Issue type name. Can I add field value as well? Any other option to create issue based on field value when transition? 

Thanks,
Ewa

 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Joshua Yamdogo @ Adaptavist
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 9, 2017

Hi Ewa,

Not sure if you have already figured out the answer to this question, but yes you can definitely use the field value as a condition. The condition could be something as simple as this for a regular text custom field:

cfValues['Some Custom Field'] == 'Some Value'

Or, you could have a condition that checks for project key, issue type name, and the value of the custom field:

issue.issueType.name == 'Bug' && issue.projectObject.key == 'XYZ' && cfValues['Some Custom Field'] == 'Some Value'
TAGS
AUG Leaders

Atlassian Community Events