The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Found Solution :

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