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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


JMWE nunjuck question

I'm on server currently combining Scriptrunner's issueFunction within a JMWE Post Function to first link and then transition an issue. Now, I'm trying to find a way to do this with Nunjuck.

The first part I first tried to replace with Automation but the second part, is where JMWE is currently trying to do a named transition which occurs more than once so the status the linked issue goes to, may differ and I want to avoid different if/else cases in my Automation and first try to keep using JMWE.

On Server:

Create link between issue in Post Function and matching JQL of type XYZ 

JQL issueFunction in epicsOf("issueFunction in linkedIssuesOf('issuekey = $⁣{}', 'is related to')")

Second post function:

Transition issue issueFunction in epicsOf("issueFunction in linkedIssuesOf('issuekey = $⁣{}', 'is related to')") calling a transition name.


The JQL expression part accepts Nunjuck, not Jira expression so I'm either looking for the correct Nunjuck or how to do this in a build your own custom Post Function.


2 answers

1 accepted

0 votes
Answer accepted

This was my fix:

{% set alleGekoppeldAan = issue | linkedIssues("is gekoppeld aan")  %}
{% set epicKeys = [] %}
{% for gekoppeldIssue in alleGekoppeldAan %}
{% if gekoppeldIssue.fields.parent %}
{% set unused = epicKeys.push(gekoppeldIssue.fields.parent.key) %}
{% endif %}
{% endfor %}
{% if epicKeys.length > 0 %}
key in ({{epicKeys | join(",")}})
{% endif %}
0 votes
Marc Koppelaar
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.
Nov 01, 2023

HI @Patrick van der Rijst 

Welcome to the community.

I have been trying to tackle related issues with JMWE and nunjucks as well.

Mot of the time I did reach out to their support, and they were able to help me. Not in all cases as those functionalities are not available.

You can find their portal here

I was able to resolve this myself, see my answer!

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events