Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to set multiple issue picker field via Automation for Jira

Hey folks - I want to use Automation for Jira to set a Multiple Issue Picker field type to trigger issue. Anybody know how to do this? Here's the JSON I'm using but it isn't working. 

 

The Multiple Issue Picker is a scriptrunner field - https://docs.adaptavist.com/sr4js/latest/features/script-fields/built-in-script-fields/issue-picker 

 

Audit log says "data was not an array". I've tried using {{triggerissue.key}} and {{triggerissue.summary}}

 

Thanks!

 Screenshot 2023-03-14 at 4.15.23 PM.png

2 answers

I was looking for a concrete answer here, I managed to set it up (on Jira Data Center) and it's working for me, so I'm leaving this for future reference. 

 

If you want to set multiple issue picker using Jira Automation, the formula looks like this: 

{
"fields": {
"customfield_xxxxx": ["{{triggerIssue.key}}"]
}
}

 *replace "xxxxx" by ID of your multiple issue picker custom field.

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 14, 2023

Hi @Julia 

First thing: I am not using ScriptRunner or Jira Server/Data Center; I am using Jira Cloud.  So my suggestion is based on what I know about automation rules, in general.

That type of field appears to have some structure, and you are trying to give it a text field...rather than an array.

So a few things to check first:

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events