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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events