Hi All,
I am building an automation that copies the value of Affected Services to the components field whenever the value of Affected Services is updated. I already have all affected services listed as components.
Using the affected services smart value: {{issue.affectedServices.name}} I am able to successfully copy value of the affected service, only if there is just ONE affected service listed. As soon as I add a second or list two at the same time, nothing gets copied and component is blank. On checking the audit logs, the rule still shows as a SUCCESS.
I have attached screenshot of the rule for reference. I appreciate any help.
Hi @Aman
If you have multiple value , I recommend to use the following :
- Create advanced branching
- edit issue using the created smart value
Thanks for your reply. I am getting the following error when trying to publish this rule.
Regards,
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I wrote it by mistake try that one please
{{issue.affectedServices.name}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aman and @Mohamed Adel
What is the type of that field? I wonder if splitting the values into a list that the advanced branch can use will help:
{{#issue.affectedServices}}{{name}}{{/}}
And...how are you updating the components?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I am trying the JSON approach, but somehow not able to get it right. Not an expert on JSON, unfortunately.
Would you be able to please help me with the JSON?
Kind Regards,
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please post what you have thus far? That may provide some context to make adjustments.
And, if you are seeing errors in the audit log, please post those also. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.