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: 

Copy Contents of Epic Field with Multi-Select Array to Story with Automation

Kristopher Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2023

I am currently trying to make an automation workflow where when I create an Epic with certain conditions, it will automatically generate a set of stories for it and carry over various fields.

One thing I am struggling with is that I am getting a lot of errors when trying to copy a custom field that allows for multiple selections.

It has been very easy for other fields, for example:

{
"fields": {
    "Epic Link": "{{issue.key}}",
    "Team Name": {
        "value": "{{issue.customfield_12345}}"
    }
}
}


However, if I try doing something similar with a field allowing for multiple selections, (as I did with "Team Name"), it says I need to return it as an array. If I put [] around it to try and return as an array, it says it needs to be returned as on object.

When I thought I managed to do that, it said my option values were not valid (despite coming from the same field)

I feel like I'm missing something, as this seems like it should be a really simple thing to do but even looking at documentation I am not really finding many references to this, and any that I have do not seem to work.

Any help at all with this would be helpful.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Fernando EugĂȘnio da Silva
Community Champion
June 12, 2023

@Kristopher Anderson 

Honest question here:

If the field is multiselect, why don't you define the field where you are creating the issue and select "Copy from Trigger Issue", then the field values will be automatically copied from the Epic when the conditions are met.

If you tried this before and didn't work, let us know

Kristopher Anderson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2023

I noticed this option just after I posted, that is definitely what I was looking for.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events