Identify This use case combines a JQL Search Extensions keyword with Power Script’s SIL Manager and Scheduler to identify issues planned for a release but that remain open after the version releaseis released.
If you are not already using Power Scripts, you can try out these features with a free trial license. Visit our Power Scripts marketplace listing to learn more.
Scenario | A version of the product was released, but not all of the issues planned for the version were closed. Solution: Automatically follow up on the tickets, adding a comment reminding the ticket owner that the version was released and to update it where appropriate. |
JSE keyword | fixedVersionsReleased
|
PowerScripts features | SIL Manager and Scheduler |
Method | In Jira, go to Settings > Apps. In the Apps sidebar menu, under POWER SCRIPTS, select SIL Manager. On the SIL Manager page, select File > New file to create a new file. Add the following script to the file, and replace MyProject with your project details. This example uses the comment, This issue is in a version that was released. Should it be closed? . You can change the comment to meet your scenario if needed.
Code Block |
---|
string [] issues = selectIssues("project = MyProject AND fixVersionsReleased > 0 AND statusCategory != Done");
for(string issueKey in issues) {
addComment(issueKey, "admin", "This issue is in a version that was released. Should it be closed?");
} |
Enter a name for the file, then click the Save icon in the top menu to save the file. Select Power Apps Config in the left sidebar. The Power Apps Config menu displays. Select Advanced > Scheduler to display the Scheduled Jobs page. Click Schedule job. The Schedule new job window displays. Select Interval for the Job type. Alternatively, use a CRON expression to define the interval. Set the interval when the script should run, for example, 3d. Select the Edit icon in the Script field. Select the saved file from the list and click Select. Image RemovedImage AddedIn the Schedule new job window, select the Run as user. Image RemovedImage AddedClick Save. Your saved scheduled job displays in the list of scheduled jobs. You can later edit or delete the job as required. Image ModifiedNow, every 3 days, this script will run and add the comment you defined in the script to any issues that match the JQL query used in the script.
|
...