The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to bring over single select custom fields from Service Desk to Product Discovery

Gregg Reaves
Contributor
December 1, 2023

Hi,

 

I'm working on an automation rule that will create a ticket in JIRA product discovery once a ticket is submitted in the service desk portal.

 

I'm having problems with 3 custom fields - 2 that are single select and 1 that is multi-select. I am getting this error:

Specify the value for DSP in an array (DSP), Specify a valid value for Agency (customfield_11685), Specify a valid value for Product Type (customfield_11684)

 

Here's my json code. Can someone guide me on how to do this? I'm stumped. Apologies if this isn't in the best format. I'm pretty novice at this kind of automation. I did try to use the built in tools to copy over but that wasn't working.

 

{
"update": {
"labels": [{
"add": "new-inquiry"
}]
},
"fields": {
"customfield_11683": "{{customfield_11504}}",
"customfield_11681": "{{customfield_11507}}",
"customfield_11682": "{{customfield_11508}}",
"customfield_11687": "{{customfield_11679}}",
"customfield_11688": "{{customfield_11680}}",
"customfield_11684" : { "value": "{issue.customfield_11673.asJsonStringArray}" },
"customfield_11685" : { "value": "{issue.customfield_11674.asJsonStringArray}" },
"customfield_11686" : { "value": "{issue.customfield_11675.asJsonStringArray}" }
}

customfield_11684 and 11685 are single select dropdowns and 11686 is a multi select dropdown.

Thank you kindly!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events