A
A
Alexey M.2018-12-12 14:14:35
JIRA
Alexey M., 2018-12-12 14:14:35

One-time transition to JIRA?

Good afternoon!
Can you please tell me how in JIRA you can organize a "one-time" transition (an action that will be performed once)?
We need a button, pressing which returns to the original status, which was before pressing the button. When the button is clicked, a webhook (without events) with a pipeline trigger in GitLab twitches. The pipeline needs to be executed once, so the button should immediately disappear when clicked.
The transition looks something like this ("Expand environment" must be allowed once):
5c10e75cb1d7b526797887.png
It turned out to be done by adding a custom field with checking the value in the transition. After the triggered pipeline is launched, the value of the field in the JIRA request changes and the button disappears. But this is not convenient because:

  • This is an extra field that does not carry useful information for users.
  • The field will be editable and users will be able to change the value -> the button will disappear ahead of time. If it is non-editable, then it will be impossible to change the value with a script
  • ~30 seconds pass between pressing the button and changing the value by the script, during this time the user will be able to press the button more than a dozen times

Maybe there is an easier way?
PS version of JIRA 6.1.4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gonchik Tsymzhitov, 2019-01-05
@lnl

Good afternoon!
I would do the following,
1. Set contidion to null on the custom field for your transition
2. Next Webhook
3. Next Post-function to enter a value in the custom field so that the transition button disappears
https://confluence.atlassian. com/adminjiraserver/a...
and so I advise you to ask for efficiency in https://community.atlassian.com
And update Jira :)
Sincerely,
Tsymzhitov Gonchik

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question