Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×Recently a user wrote a Python script to add a comment to all issues that met certain criteria in a JQL query. But she wanted to run it as a service account.
It seemed like a more secure approach would be to instead create an Automation Rule that could be manually triggered (by a group with just this user).
The rule was simple enough, but she asked if there could be a confirmation screen because selecting an rule from the Automation menu triggers it immediately. Additionally, the menu does not close, meaning there's a real possibility you could accidentally run the automation twice (which happened to me while testing).
Using the feature to Prompt for input when this rule is triggered allows us to put up a nice confirmation dialogue that allows the user to choose Yes and then Submit.
We get the added benefit that the Automation menu closes when the dialogue appears.
Here's what the rule looks like. Pretty simple, but useful!
Darryl Lee
Sr. Atlassian Systems Engineer
Roku, Inc.
San Jose, CA
207 accepted answers
8 comments