You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 = ${issue.id}', 'is related to')")
Second post function:
Transition issue issueFunction in epicsOf("issueFunction in linkedIssuesOf('issuekey = ${issue.id}', '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.
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 %}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.