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

Listener automation not working at Issue create (Scriptrunner)

Lalith Motay May 18, 2022

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

Suggest an answer

Log in or Sign up to answer
0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 18, 2022

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

Lalith Motay May 18, 2022

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.

Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 18, 2022

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

Lalith Motay May 18, 2022

Hi @Ram Kumar Aravindakshan _Adaptavist_ 

All 3 are custom fields of single choice, attaching screenshot

Thanks,

Lalith2.JPG1.JPG

Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 18, 2022

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

Lalith Motay May 18, 2022

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

TAGS
AUG Leaders

Atlassian Community Events