how to populate issue id in a custom field when creating a new issue in JIRA

satish March 5, 2017
 

1 answer

0 votes
Niclas Sandstroem
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.
March 5, 2017

Hi one way would be to use Scriptrunner.

https://scriptrunner.adaptavist.com/latest/jira/

def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'MyCustomFieldType'}
issue.setCustomFieldValue(cf, issue.getId() as String)

Suggest an answer

Log in or Sign up to answer