Salto for
Jira
Articles
SHARE
Rachel Wright
April 30, 2025
5
min read
At some point in your Jira administration journey, you’ll inevitably have additional configuration needs and start to wonder what else is possible. The Jira configuration is very flexible and customizable, but what happens when you need even more? What happens when your organization's use case lies just outside Jira’s native capabilities? That’s when we look to third-party apps and custom scripting to bring additional functions and customizations to our applications. But with additional complexity comes additional risk. Luckily, Salto recognizes the need to protect additional settings outside the standard Jira configuration. They’ve added support for scripts from Adaptavist’s popular ScriptRunner for Jira app. This integration is yet another way Salto helps Jira administrators manage their Jira application more effectively.
Jira already sends email notifications to assignees, reporters, and watchers. But have you ever wanted to send a special, custom email notification when a work item or issue reaches a specific status? There are many ways to accomplish this. You could use a custom event, an automation rule, or you could use an app like ScriptRunner. Here’s a simple use case. When a work item transitions to the final “Done” status, send a custom email notification to a specific user. Here’s how to build this capability, using a sample script from Adaptavist’s script library.
First, I built a simple workflow with three statuses: To Do, In Progress, and Done. In the Done transition, I added a new “ScriptRunner post function”. Post Functions are additional rules or actions that occur after a workflow transition.
Then, I selected the “Send Notification” action from the list of additional post function actions ScriptRunner provides.
Next, I entered all the criteria for the notification, such as the user to send the message to, the message’s subject, and the user Jira should log as the initiator. In the “Message” field, I pasted an example script to specify the information to include in the email body. I made some minor modifications and added some HTML line breaks. The script contains variables like the work item’s key, assignee, priority, description, and reporter.
Next, I saved the rule and published the workflow. Finally, I tested the post function and script by transitioning a Jira work item to the Done status. In ScriptRunner and in the workflow post function, Jira shows that the script executed successfully.
The last thing I checked was that the email message was received, the message body contained the expected variables, and the message was formatted as desired.
I’ll admit that it took me a couple of tries to get the message to look as pictured above. I needed to make a small script change, transition the work item out of and back to the Done status, and review the resulting email a few times to get it right.
Now that I have spent some time customizing the script and getting the message to look the way I want, I want to ensure that the script is protected so I can check it into a code repository, deploy it to production, and never have to write or customize it again. That’s where Salto comes in!
One of the things I love about Salto is that it stores Jira configurations as easy-to-read text files. Simply open a workflow file in Salto to view a text-based representation of the workflow settings, including statuses, transitions, properties, behaviors, and post functions that contain ScriptRunner scripts.
You can also search for any unique string or keyword in your script, and Salto will find that information immediately. For example, I searched for the string “Issues.getByKey” which appears in the first line of my script. Salto found the workflow file containing the script and opened it at the location where the script starts. Now I know my ScriptRunner script is safe and sound and part of my Jira change management process.
With ScriptRunner support in Salto, you can automatically deploy or rollback script changes with ease. There’s no need for a manual and error-prone copy-and-paste process to move, update, or rollback scripts between sandbox and production environments. This integration enables you to compare scripts across multiple Jira applications or sites, allowing you to identify and manage any differences.
With Salto, ScriptRunner code is now part of a robust change management process where you track Jira configuration changes, collaborate with fellow Jira administrators using pull requests, and deploy changes to production.
Now it’s your turn! Add Adaptavist’s ScriptRunner for Jira app to your Jira application. There’s a version for Cloud and Data Center. Start a free trial from marketplace.atlassian.com or from Admin > Apps > Find new apps.
Ideas
Then, fetch your Jira data in Salto and see your scripts there!
Salto for
Jira
Jira
SHARE
Rachel Wright
April 30, 2025
5
min read
At some point in your Jira administration journey, you’ll inevitably have additional configuration needs and start to wonder what else is possible. The Jira configuration is very flexible and customizable, but what happens when you need even more? What happens when your organization's use case lies just outside Jira’s native capabilities? That’s when we look to third-party apps and custom scripting to bring additional functions and customizations to our applications. But with additional complexity comes additional risk. Luckily, Salto recognizes the need to protect additional settings outside the standard Jira configuration. They’ve added support for scripts from Adaptavist’s popular ScriptRunner for Jira app. This integration is yet another way Salto helps Jira administrators manage their Jira application more effectively.
Jira already sends email notifications to assignees, reporters, and watchers. But have you ever wanted to send a special, custom email notification when a work item or issue reaches a specific status? There are many ways to accomplish this. You could use a custom event, an automation rule, or you could use an app like ScriptRunner. Here’s a simple use case. When a work item transitions to the final “Done” status, send a custom email notification to a specific user. Here’s how to build this capability, using a sample script from Adaptavist’s script library.
First, I built a simple workflow with three statuses: To Do, In Progress, and Done. In the Done transition, I added a new “ScriptRunner post function”. Post Functions are additional rules or actions that occur after a workflow transition.
Then, I selected the “Send Notification” action from the list of additional post function actions ScriptRunner provides.
Next, I entered all the criteria for the notification, such as the user to send the message to, the message’s subject, and the user Jira should log as the initiator. In the “Message” field, I pasted an example script to specify the information to include in the email body. I made some minor modifications and added some HTML line breaks. The script contains variables like the work item’s key, assignee, priority, description, and reporter.
Next, I saved the rule and published the workflow. Finally, I tested the post function and script by transitioning a Jira work item to the Done status. In ScriptRunner and in the workflow post function, Jira shows that the script executed successfully.
The last thing I checked was that the email message was received, the message body contained the expected variables, and the message was formatted as desired.
I’ll admit that it took me a couple of tries to get the message to look as pictured above. I needed to make a small script change, transition the work item out of and back to the Done status, and review the resulting email a few times to get it right.
Now that I have spent some time customizing the script and getting the message to look the way I want, I want to ensure that the script is protected so I can check it into a code repository, deploy it to production, and never have to write or customize it again. That’s where Salto comes in!
One of the things I love about Salto is that it stores Jira configurations as easy-to-read text files. Simply open a workflow file in Salto to view a text-based representation of the workflow settings, including statuses, transitions, properties, behaviors, and post functions that contain ScriptRunner scripts.
You can also search for any unique string or keyword in your script, and Salto will find that information immediately. For example, I searched for the string “Issues.getByKey” which appears in the first line of my script. Salto found the workflow file containing the script and opened it at the location where the script starts. Now I know my ScriptRunner script is safe and sound and part of my Jira change management process.
With ScriptRunner support in Salto, you can automatically deploy or rollback script changes with ease. There’s no need for a manual and error-prone copy-and-paste process to move, update, or rollback scripts between sandbox and production environments. This integration enables you to compare scripts across multiple Jira applications or sites, allowing you to identify and manage any differences.
With Salto, ScriptRunner code is now part of a robust change management process where you track Jira configuration changes, collaborate with fellow Jira administrators using pull requests, and deploy changes to production.
Now it’s your turn! Add Adaptavist’s ScriptRunner for Jira app to your Jira application. There’s a version for Cloud and Data Center. Start a free trial from marketplace.atlassian.com or from Admin > Apps > Find new apps.
Ideas
Then, fetch your Jira data in Salto and see your scripts there!