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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.