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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.