Hi,
I am trying to update approved? field as a additional condition using fast track transition. Below is my additional code script but it is not working.
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Approved?'}
issue.setCustomFieldValue(cf, "Approved")
I did tried below but no luck.
def cf = customFieldManager.getCustomFieldObject(10300)
issue.setCustomFieldValue(cf, "Approved")
Please assist us.
Hi,
Thanks for getting back. Unfortunately it is still not working. Is there a way to use REST API to update the field?
First variant looks good to me provided you used correct custom field name.
Try adding issue.store() at the end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.