How to set multiple issue picker field via Automation for Jira

Julia
Contributor
March 14, 2023

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

0 votes
Gaby November 3, 2023

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.
March 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