Jira JMWE - Set issue Field for multiple project

Joseph Hani
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.
December 20, 2021

Hello, 

 

I'm using JMWE on our instance and I'm looking for some help on our Workflow. 

We are using the same workflow for 3 projects and we are trying to Assign the ticket automatically on a transition but not the same Assignee on each project. 

Here is what we are trying to do : 

Project A and B share the same Workflow 

In Project A --> Set Issue Field --> Assigne 1 

In Project B --> Set Issue Field --> Assigne 2 

 

I have tried to make 2 Post Functions but when I'm updating one, the other one update also and then shares the same properties. 

I find this also : https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/94142534/Set+issue+fields

But doesn't give me enough information on how to set it if I need to assign someone different on another project. 

 

Any help would be appreciated! 

Thank you very much! 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Joseph Hani
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.
December 20, 2021

Found Solution :

{% if issue.fields.project.key == "KEY" %}
accountId:
{% elif issue.fields.project.key == "KEY" %}
accountId:
{% endif %}

Suggest an answer

Log in or Sign up to answer