Hi,
I am trying to write a script in the issue Post function to set multi-select list custom field value "Exists"= 'Production' if reporter = Salesforce.
We have a script runner plugin installed so please suggest.
Tried with below code
{code}
if ((issue.reporter?.name == 'Salesforceuser')
issue.setCustomFieldValue(existin, "Production")
{code}
Hello @Mohamed Benziane ,
Thank you for looking at it.
Used below post-function script but did not work.
def existsin = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Exists In'}
if (issue.reporter?.name == 'Salesforceuser')
{
issue.setCustomFieldValue(existsin, [Production])
}
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.