Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,374
Community Members
 
Community Events
165
Community Groups

Listener automation not working at Issue create (Scriptrunner)

Team - I created a listener which has to be executed at 2 event, "Issue Update" & "Issue Create". The listener automation works exceptionally at issue update but it is not working at "Issue Create".

Attaching a screenshot of the events when it triggersscriptrunner.JPG.

1 answer

Hi @Lalith Motay

Could you please specify what do you want the Listener to do when the Issue Created event is triggered?

If you could also share your Listener code, it would be helpful.

Thank you and Kind Regards,

Ram

Hi @Ram Kumar Aravindakshan _Adaptavist_ 

At the issue created event, i was calculating the impact & probability for a rating. i.e at the issue creation, when user enters impact and the probability, the rating should be autocalculated. The calculation is working when issue is updated/edited but not at the issue create event.

Hi @Lalith Motay

What type of fields are you using for the impact & probability and rating?

Could you please share a screenshot for a better understanding?

Thank you and Kind regards,
Ram

Hi @Ram Kumar Aravindakshan _Adaptavist_ 

All 3 are custom fields of single choice, attaching screenshot

Thanks,

Lalith2.JPG1.JPG

Hi @Lalith Motay

From what you are displaying, you are using one list to update another list.

Why not just use the Behaviour instead?

It is much simpler and works on the Create screen as well as the Edit screen.

Thank you and Kind regards,

Ram

Thanks @Ram Kumar Aravindakshan _Adaptavist_ 

Didn't try behaviour before. I'll give a try and revert if it is working. 

Thanks for the review/help

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

183 views 1 3
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