custom listener not working on workflow transition

Hi 

I have written a custom listener which is working on Edit/View screen

but when I update fields from workflow transition screen it does not work at all.

Nothing found in logs

any Idea what could be the missing thing here?

 

 

3 answers

Workflow transitions trigger a Generic Event by default (you can make them trigger other events, add your own custom events, etc.).

 

Register your script listener in the JIRA script listener configuration to listen for the Generic Event.

 

Update your script to also listen for the event to handle it.

 

@Override
void issueGenericEvent(IssueEvent event){
    ...
}

 

Hope this helps!

Thanks Andrew 

Below thing worked out for me

@Override

void workflowEvent(IssueEvent event){
    ...
}
Events: Issue Created,Issue Updated,Generic Event

each for running listener script on 

1.issue creation
2.issue updation
3.workflow screen field/ transition

Glad it worked out - accept the answer if it solved everything so users don't see it as unresolved.

What events have you registered it for when configuring it in JIRA? What events are you catching in you code?

it is for issue updated event

 

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

78 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you