Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Listener on Create issue & changing custom field

Hello. I need to catch events:

1) when custom field changed;

2) I need to catch event when issue is created and custom field changed.

For first condition there's no problem I catch this like this 

def change = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {(it.field.toString() == "fieldName")}

 but I don't know how to catch changing of the custom field while creation of issue.

I will be glad to any help.

1 answer

1 accepted

1 vote
Answer accepted
Antoine Berry Community Leader Jul 04, 2019

Hi @aas , Welcome to the community ! 

To my knowledge you cannot. If you actually check issue history, fields valued in the create transitions are not displayed because you can just check them directly on the issue.

As a result you cannot catch a change of the field value. So you would have to retrieve its value and compare it to the default value to know if the user has changed it.


Thank you Antoine. I solved that problem making another script and adding it as a post function script. And add that post function to 'create' transition.

Antoine Berry Community Leader Jul 04, 2019

In that case you could use a Listener or a Post-function with the same result, but a post-function is a wiser logical choice I do agree.

Suggest an answer

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

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

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