Set assignee based on the "select type" custom field value using JMWE add-on

Jira Admin Team May 23, 2024

Using the "Set field value (JMWE app)" post function I need to set the assignee based on the select type custom filed 

Custom Field 1: "MRT Station" (Nort Ave, Quezon Ave)


If "MRT Station" selectedValue = Nort Ave set Assignee = "Admin"
If "MRT Station" selectedValue = Quezon Ave set Assignee = "Developer"

 

What is the proper syntax for this? I am struggling with it. Thank you

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2024

Hi @Jira Admin Team 

You can use a value like:

{% if issue.fields["MRT Station"].value == "Nort Ave" -%}
accountId:12345-6789-123
{%- elif issue.fields["MRT Station"].value == "Quezon Ave" -%}
accountId:7890-123-1334
{%- endif %}

 You'll need to replace the accountId values with those for the two users. You can find the accountId for a user using the "Lookup user"  button on the editir toolbar. 

Suggest an answer

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

Atlassian Community Events