Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Priority change manualy



I am looking for a option whenever the priorities field changed manually from Incident, Project "SMXBID"the Comment to be added automatically ""Priorities changed from Minor to Major" in Jira

I attached screendump , kindly see if i am using correct EVENT and also see below script where i get error message and no comment is added while executing.

Please assist my script , remeber it should add comment Old value to new value (""Priorities changed from Minor(old value) to Major"(new value) )


import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.priority.Priority
issue.projectObject.key == 'SMXBID' == 'Incident'
// Check if priority changeddef customFieldManager = ComponentAccessor.getCustomFieldManager()
def change = event?.getChangeLog()?.getRelated("ChildChangeItem").find

{it.field == "priority"}

if (change) {
log.warn "Priority Changed" 
log.warn "Priority remain same" 


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

454 views 6 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you