How to update a triggerIssue field ?

Olivier January 24, 2018

Hello, 

I would like to set value of the custom field "test" of my issue trigger

I did that but I have a SyntaxError

{
"fields": {
"{{triggerIssue.Test}}" : "Test"
}
}

STEP 1 : I use a recursive function to get alla the issue linked...and it works

SPET 2 : I want to put the custom field value the a linked issue to my trigger issue...doen't work  

Could you help me please ?

2018-01-24_1653.png2018-01-24_1719.png

1 answer

0 votes
Scott Harwood
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.
January 24, 2018

Hi Oliver,

 

What type of custom field is the field "Test"? You need to not be on a branch, and use this syntax:

{

      "fields": {

          "Test": "My value"

      }

}
Olivier January 25, 2018

Hello Scott.

Test is a text custom field

I would like to put the value of the issue linked to my trigger issue. Something like that :

{
"fields": {
"{{triggerIssue.fields.Test}}" : {{issue.fields.Test}}
}
}

Scott Harwood
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.
January 28, 2018

Hi Oliver,

Doing this isn't that robust as you may have multiple issue links, which have different values. If you can guarantee you only have one issue link you can get rid of the branch, and simple choose the text custom field from the field picker and enter this.

{{issue.issuelinks.first.key}}

Let me know if that works for you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events