Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to add new dialog on workflow transition in Jira

Marcus Holt July 11, 2011

I want to make a jira plugin that works like a workflow validator, but instead of not allowing a transition if certain conditions are not met, I want to just bring up a warning dialog where the user can choose to continue or cancel the transition.

As far as I can tell this is not possible using a workflow validator, as that will only bring up an error if the conditions are not met.

I have written webwork plugins before, and that would seem like one likely possibility, but I don't know how it would be possible to intercept the workflow transition to perform the custom action.

I don't know if what I want to do is possible at all, and if it is, I don't know if a webwork plugin would be able to do it.

Are there any Jira experts out there who could point me in the right direction?

By the way, I am using Jira 4.2 if that makes any difference.

Thanks,
Marcus.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Jobin Kuruvilla [Adaptavist]
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.
July 11, 2011

Why don't you create a new issue operation that does this? The issue operation should point to a webwork action which gives a warning and if continued, progressses the issue on the workflow behind the scenes.

Marcus Holt July 12, 2011

Thanks for that answer. Now my question becomes, what is an issue operation? Is that something to do with webitems? If so, can you tell me what section I could put it in, or how to create a new appropriate section?

If it's not something to do with web items then I'm afraid I'm a bit lost. Is this something that is available in Jira 4.2 (which I should have mentioned is what I am using)?

0 votes
MattS
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.
July 12, 2011

Still sounds like a validator to me. The validator should throw an InvalidInputException with the information about what to change, and some field and value to set to pass the validator.

Jobin Kuruvilla [Adaptavist]
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.
July 12, 2011

Looks like Marcus want to proceed without changing the input in some cases? i.e a warning, not an error? Not sure if I misread!

Marcus Holt July 12, 2011

Yes Jobin you are right. I want to be able to indicate that the not-so-good condition exists (just like a validator), but allow the user to continue anyway if they are sure. I don't think I can use a validator to do this.

TAGS
AUG Leaders

Atlassian Community Events