How to update a triggerIssue field ? Edited

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 vote
Scott Harwood Community Champion Jan 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"

      }

}

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 Community Champion Jan 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

172 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you