Forums

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

Developerment: Are you sure popup before done

Roman Dulkin August 12, 2018

Hello,

 

I'm currently developing a plugin for JIRA cloud. One of the features that I want to implement is "Are you sure" dialog before issue moved to Done.

 

I couldn't find the right strategy to approach the issue. Can you suggest something, or is it impossible?

1 answer

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2018

Hi Roman,

You can do this without a plugin! When Jira issues transition from one status to another, they follow the rules defined in the conditions/validators/post-functions of their workflows.

  1. Create a custom field called "Are you sure?" with just an option for yes (radio boxes would be the fewest clicks for the user to do this)
  2. Create a new screen and add the "Are you sure?" field to it
  3. Create a validator on the transition to Done (the regex validator should work fine for this)
  4. Set the validator so that the "Are you sure?" field must have the value "yes"
  5. Set the transition to use the "Are you sure" screen you created in step 2
  6. Publish your modified workflow

Now when you execute the transition to Done, you'll get a screen popping up that asks if you're sure. You have to click "Yes" to continue!

 image.png

Roman Dulkin August 15, 2018

Great. That's amazing. Thank you. Is there any way I can use CSS to change the looks of the radio buttons?

Like lilachFeit likes this

Suggest an answer

Log in or Sign up to answer