Requriement
1) Add 10 days to custom date field.
2) 10 days will be pulled from a custom field ( number)
Tried
Below step using behavior plugin but not working
import com.atlassian.jira.component.ComponentAccessor
import static com.atlassian.jira.issue.IssueFieldConstants.*
def desc = getFieldById("customfield_11002")
def defaultValue = getFieldById("customfield_11003")
def newvalue = defaultValue.getFormValue() as Long
desc.setFormValue(newvalue)
return
I am not able to access the value of customfield_11003 to store in customfield_11002
Not interested in using misc custom fields as it is messing up with my custom field view