We want to add jira organizations by adding their organizationID with a automation which are stored as asset attributes.
If a user submits a work item and chooses one or more departments in the customfield "Responsible Departments" (customfield_10384) the organizationID stored as asset Attribute "OrganisationID" should be added as organization.
I tried adding those organizations like adding request participants in this documentation: Manage Request Participants with Automation in JSM Cloud | Jira and Jira Service Management | Atlassian Support
My edit issue-rule looks like this:
{"update": {
"customfield_10002": [
{{#issue.customfield_10384}}{"add": {"id":[{{OrganisationID}}]}}{{^last}},{{/}}{{/}}
]
}
}
I got the error: "Function value has to be a number (customfield_10002)"
I added a additional protocol action to verify my input:
{{#issue.customfield_10384}}{{OrganisationID}}{{^last}},{{/}}{{/}}
returns:
211,78
What am i not seeing here?
