My code
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.fields.CustomField
import com.atlassian.jira.config.SubTaskManager
... blabla (work but not important for my question)
(result: sum = 100 in customfield_10747 (scripted field))
def champMEA = customFieldManager.getCustomFieldObjectByName("MEA"); (works)
(In my form take the field numeric box MEA)
champMEA = ComponentAccessor.getCustomField("customfield_10747").getvalue()
(not working, how to update my field MEA with customfield10747 that contain 100 ???)
return sum
thank you
Your failing line of code is not referencing the issue, so it doesn't know where to get the data from.
Try
def theValue = issue.getCustomField(champMEA).getvalue()
Thank you
and also my type was not good :)
Have a good day
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.