Hi - I have create a Post Function, so when a ticket in our Service Desk is moved to In Progress, a new (linked) ticket is created in our Scrum team's project.
Is it possible to update the post function, so it can route to a different Jira board, based on another value?
Example: We have a custom dropdown field for Scrum Team.
Sure. You can select "Calculated:" as the Destination Project, with a Nunjucks Template like:
{% if issue.fields["Scrum Team"].value == "ABC" %}
ABC
{% elif issue.fields["Scrum Team"].value == "XYZ" %}
XYZ
{%endif%}
That assumes that "Scrum Team" is a single-select type custom field.
If the value of that custom field is exactly the project key, you could even use this:
{{issue.fields["Scrum Team"].value}}
Hi - I used the above template with "Calculated" option for Project, but still received a JMWE error. Unfortunately the JMWE error log is not loading for me so I can't put the specific error at this time.
Confirming:
{% if issue.fields[Squad].value == "Central Data" %}
DATA
{% elif issue.fields["Scrum Team"].value == "Benjamins" %}
ENG
{% elif issue.fields["Scrum Team"].value == "CRAB" %}
ENG
{% elif issue.fields["Scrum Team"].value == "Mint" %}
ENG
{%endif%}
Any thoughts?? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emily,
you're missing the double quotes around Squad on the first line (and maybe you meant to test the Scrum Team field instead?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. I was missing the "" around the Squad field.
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.