Fire Issue Event manually without changing status

Guilherme Peres October 18, 2017

Hello!

I'm trying to find a way to manually fire a specific event from JIRA issues without having to update it, since it has to remain on the same status, and it needs to be possible from any status (of a very long workflow).

This question has a good method of doing so from an escalation service, but in my case, I need to be able to do it manually from the issue screen itself. I was thinking of using a little plugin with web-items, but I don't know if that could actually execute code, instead of just using it as context or condition. Maybe a link, but I didn't find anything about firing events from the REST API.

Is there a way to do this? Is it a wrong approach in any way?

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2017

Peter beat me to the best answer, but if you do want to do this without add-ons, you can.  Add a "looped transition" to the workflow whereever you need to trigger the event, one that goes back to the same status.

This will do what you want, but has drawbacks - it's in the workflow, you have to edit your workflows to do it, and it writes to the issue history (mixed bag on that one - you'll get an audit log of who triggered notifications and when, at the expense of an issue history that could contain a lot of "issue didn't really change" lines)

Guilherme Peres October 19, 2017

@Nic Brough -Adaptavist-, that's actually what we've been doing for some time in some statuses, but our workflow currently contains 93 different steps, and still tends to grow. I'm trying to take it out of the workflow for that reason, because our team is demanding it on different steps, but it still remains as an alternative.

If there was a way to make it a global transition, but coming back to the same status as before, that would probably be the best case for us.

Guilherme Peres November 22, 2017

We ended up just adding transitions along the workflow like that. Will keep doing it by demand, on required statuses.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2017

Mmm, the obvious instinct is that you've probably got 80 too many steps in the workflow.  Also, probably more to the point, the desire for arbitrary "fire event when nothing has actually happened" suggests you've set up Jira to do something that might be more sensible to do in another tool.

A good example of this was an old client who, while they had a small workflow, triggered hundreds of events from a few status within them.  Turned out they really needed a build tool like Bamboo, as their events were "please build, given info in Jira".  Properly integrated, that moves into Bamboo.

1 vote
Peter DeWitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2017

@Guilherme Peres, look at Scriptrunner.  You can add a web item and tie it to a backend script that will fire you event.

pd

Guilherme Peres October 19, 2017

@Peter DeWitt, thank you for your suggestion. We have Script Runner, but still at the free version (3.1.4), and can't afford the paid version with our current Jira license. From what I've seen, web items are only supported from version 4.3 (or 4.1.3.11) onwards, so that's a limitation.

Peter DeWitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 19, 2017

@Guilherme Peres, if you can't afford the Scriptrunner add-on Nic's suggestion on the looped transition will be the way to go.

Suggest an answer

Log in or Sign up to answer