Getting started with Power Scripts™ for Jira cloud
The following table contains pages of Power Scripts™ for Jira cloud that you might use the most in the beginning, their purpose and instructions on how to access them.
Page | Notes | How to access |
---|---|---|
Getting started | Use this page whenever you are stuck with the scripts and want a quick tip. |
|
Power Scripts™ Administration | Here you can configure the basic parameters of SIL. |
|
SIL Manager | SIL Manager page contains SIL editor and is a central point where you develop your scripts. For all scripts that reside in the virtual directories, this tool offers all the power of SIL at your crafty fingertips. | Click SIL Manager from Jira home, yup, it's that easy. |
SIL editor in the workflow post-functions | In addition to writing your scripts on the SIL Manager page, you can also create them in the SIL editor when you add a SIL post-function in your project workflow settings. |
|
Where to begin
You can start developing your scripts in several ways:
- Start on the SIL Manager page
- Start in the project workflows
To demonstrate these options, we will show them on a simple example: assigning a ticket to the current user when the ticket is transitioned from "In Progress" to "Done".
Writing a new script in the SIL Manager
- Click SIL Manager from Jira home.
You can create a new script within a new file or folder. - To create a new script within new file, right click the silprograms folder and select New File.
- Give a name to your new script.
- Write the script in the SIL editor. Click Check to validate the syntax.
- Click Save.
That's it. Your script is saved and now you can add it to the project workflow.
Adding an existing script to the project workflow
- From Jira home, go to Settings > Projects.
- Click the necessary project and click Settings.
- Click Workflows and then Edit in the Actions column.
Display the workflow as Text. In the Transitions column, select a transition you'd like the script to work for. The Step Name(id) column represents ticket original status and the Transitions(id) column represents where the ticket will go to. For our example we go from "In Progress" to "Done".
- Click the Post Functions tab and click the Add post function link.
- Select SIL Post function and click Add.
- Select use an existing script, unmodified and click Next.
- Select a script that you already created, click Next, and then Add.
- To save changes, click Publish Draft.
- In the dialog that appears, select whether you'd like to backup project copy. Click Yes and Publish.
That's it.
You can transition the tickets in your project to "Done" and they will automatically get assigned to Admin.
Adding a new script from the project workflow
- In the same way as in the instructions for the new script, add a SIL post-function for the project.
- Select create a new script and click Next.
- Name your script and select the directory where to store it. Click Next.
- Write your script. Click Check to validate syntax. Click Next to save the script and then click Add.
- To save changes, click Publish Draft.
- In the dialog that appears, select whether you'd like to backup project copy. Click Yes and Publish.
That's it.