Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Action ID when Status is changed using Issue Event

Chandramouli Vashisth July 29, 2019

Hi,

 

I am trying to get the action id when Status is changed in a JIRA issue.

I am using event listener to get the issue in which status has been changed. Is there a way I can get what actionid was performed.

Right now, I am working with default workflow. So linked steps are coming as null. Is there any JAVA API where I can get Status to action mapping.

woekflowe.PNG

2 answers

1 accepted

0 votes
Answer accepted
toddler October 21, 2022

Very poor, no answers since 2019.

I am fighting with this as well and the only event where I can see the transitionId (actionId) is when using a webhook. There you can find it in the json payload.

 

BR

Heiko Gerlach

0 votes
Darin Hafer June 18, 2025

Not sure which answer here was accepted, but since I don't see an answer, how about this one?

In a listener, you can listen for a change to the status field. From there, you can derive it from the changelog, like so:


if (event.getEventTypeId() == EventType.ISSUE_GENERICEVENT_ID && issue?.issueType.name == "Program"){
    def change = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "status"}
    log.warn "change ${change}"
}

How do you like them apples? 

Suggest an answer

Log in or Sign up to answer