custom listener not working on workflow transition

rahuldanwade
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.
February 4, 2016

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

4 votes
AndrewB February 4, 2016

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!

rahuldanwade
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.
February 4, 2016

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
AndrewB February 4, 2016

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

0 votes
rahuldanwade
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.
February 4, 2016

it is for issue updated event

 

 

 

0 votes
AndrewB February 4, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events