jmwe conditional transition for compare two value

Hi all, 

I would like to make a oto transition as two number custom field. And I am using jmwe plugin "Transition Issue" post function. My fields are "Cost" and "Value".  If  Value <10 and Cost>12 , make a status transition. 

How can I write a script for this. 


Thanks for now. 

1 answer

0 vote

Hi Muhammet,


First off you need to know the IDs of your "Cost" and "Value" fields. To do that go Administration -> Issues -> Custom fields. Select your custom field and click 'Edit'. After that check the URL bar in your browser, it will have something like '/secure/admin/EditCustomField!default.jspa?id=13300'. These last five digits is the ID of this field.

For the purposes of this answer let's assume that your "Cost" field has ID 12500 and "Value" has ID 12700

Then the script in your post function should look like:

if(issue.get("customfield_12500") > 12 && issue.get("customfield_12700") < 10){
return true
return false



Hi, really thanks Ivan - very easy. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

1,238 views 2 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you