What is the syntax to get a custome field value during a transition?
let me elaborate :
I have a screen that shows a custome field which the user can change, I would like to get the updated value of this field in a groovt scirpt I'm running as part of the transition.
Try something like the following
import com.atlassian.jira.issue.Issue; import com.atlassian.jira.issue.fields.CustomField; import com.atlassian.jira.component.ComponentAccessor; import com.atlassian.jira.issue.CustomFieldManager; CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager(); CustomField customField_test = customFieldManager.getCustomFieldObject( id ); def test_value = issue.getCustomFieldValue( customField_test )
import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.ComponentManager ComponentManager componentManager = ComponentManager.getInstance() CustomFieldManager customFieldManager = componentManager.getCustomFieldManager() cfParent = customFieldManager.getCustomFieldObjectByName('Computer Needs') parentMyFieldValue = transientVars["issue"].getCustomFieldValue(cfParent)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG