Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation: Is it possible to set the value of triggerIssue custom field in Additional fields


I need to make an Automation rule that runs when issue is created and gets the Parent Link (from Advanced Roadmaps) value, gets the parent issue and takes the value of a custom field from it, then copies it in the same field in the newly created issue. I can get the Parent issue through the Parent link using Branch Rule/related issues fork with JQL like "IssueKey = {{issue.Parent Link}}", but from that point on my current issue is the parent issue and the trigger issue is the newly created one, so in an Edit Issue action I cannot simply set the value of the custom field from the trigger issue, because it copies the value from the child to the parent. Instead I need to use Additional Fields JSON to try to copy the value from the current issue (the parent) to the trigger issue (the child). I use JSON like:

"fields": {

but when I try to publish it it says "Additional fields contains invalid field(s) in 'update' or 'fields' section: {{triggerIssue.customfield_11100}}".

So it looks like I cannot use triggerIssue on the left side here, or am I doing it wrong?

2 answers

1 accepted

In Automation for JIRA Cloud there is a very cool action called "Lookup issues", it allows you to fetch issues using JQL and pass the result into a variable that you can use later as smar value in your rule.

I believe this would solve your issue, you could use this action to fetch the Parent Linked issue using this action instead of using the branch (which I think is the source of your issue here)

Unfortunately this action is not available yet to server , there is an open ticket for this

For now I think you should do this requirement using an app that allow you to do scripts ( such as Scriptrunner or Power Script)

0 votes
John Funk Community Leader Jan 13, 2021

Hi Boyan,

What is the actual link between the child and the parent? Is it an Epic? Are you using Linked Issues? 

Hi John,

The link is based on the field "Parent Link", which comes with Advanced Roadmaps (Portfolio) and establishes the hierarchy in the Advanced Roadmaps. Automation for Jira does not regard this field as Parent-Child relation so far, there is a feature request for this which hopefully gets implemented some day. Until then I am trying to find a workaround, but so far I am failing.



John Funk Community Leader Jan 14, 2021

what if you manually added another link between the issues using the Linked Issues field? 

This is what I would like to avoid, as I need the process to be automated. If I go to manually add links between issues, I might as well manually set the field...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

471 views 5 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you