Hi,
I'm trying to transition a sub-task after its creation, by a listener.
The main issue is that I'm not sure how to create the MutuableIssue for the issue in the event.
MutableIssue mi = issueManager.getIssueObject(??????);
Can someone please advise?
Thanks,
Guy
In a listener, you get an "event" object you can work with. This contains a load of stuff you might need (the pre-event issue plus a list of changes are the most useful things generally).
A very blunt answer to your question is just
MutableIssue mi = (MutableIssue) event.issue
It will grab the issue from the event and cast it over so you can make more changes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.