The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

use nunjucks to add condition

Nodar Vardiashvili
Contributor
September 25, 2020

Hi, 

we use JMWE plugin, I want to add post function when issue transition in resolved status  Copy field value from project A to Project B. 

i want to add a condition in this post function and i dont know how use nunjuck. i want something like this , copy this value to the linked issue if the linked issue is in Project B.

 

we create many linked issues in another project (project C,D,E,F...) from Project "A" and I want to run this post function only for Project "B"

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
David Fischer
Community Champion
September 25, 2020

Hi,

the condition you're looking for is:

{{ linkedIssue.fields.project.key == "B" }}

This can be used in the Conditional Execution section of the Copy Field to Linked Issues post-function. 

Nodar Vardiashvili
Contributor
September 26, 2020

Thank You

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events