Create Listener (Priority changed)

Philipp Hartl December 7, 2022

Hello,

i want to create a listener for our MS Teams, so that every time the priority for an issue changes in our project, i want to receive a message.

I think the event for that is IssueUpdated but i dont know what i need to enter in the Condition and Configuration (i use scriptrunner listener)

Could you please help me with that? THank you!

1 answer

1 accepted

1 vote
Answer accepted
Mehmet Şirin Usanmaz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2022

Hi @Philipp Hartl

You can write a listener script like below.Here you can define the actions to be taken when priority changes and becomes major.

issue.priority?.name == 'Major' && changeItems.any {

it.get('field')=='priority'

}

Thanks,
Mehmet Sirin Usanmaz

Philipp Hartl December 7, 2022

Hello @Mehmet Şirin Usanmaz 

thanks for your help, i adjusted the template and it works.

Is it possible to state multiple priority names here or only one?

Suggest an answer

Log in or Sign up to answer