Script Post-Function


I have installed a plugin and did all the requirement process listed below but it doesn’t send an email notification when that custom field exceed 1000. And one other thing I am missing, on the Preview issue key what information I should put?


Script Post-Function: Update parameters of the script Post-Function for this transition

Condition: ((cfValues[' Estimated Value '] ?: 0) as Integer) >= 1000

Email template: Over with 1000

Subject template: Estimated value exceeded

To address:

To issue fields: tsheo (user)

From address:

Preview Issue Key: ?

1 answer

1 accepted

0 vote

> Condition: ((cfValues[' Estimated Value '] ?: 0) as Integer) >= 1000

Is this a typo or is there really a space at the end of your field name?

What should you put in preview issue key? An issue to test the condition with.

Ok..i see, there should not be a space on my field name and it worked. How can i identify that when it trigger an email it should include the issue number on the email message?


Read the docs... add ${issue.key} to the template.

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 Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

268 views 0 6
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