You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Identify issues planned for a release but remain open after the version release.
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.
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.
In the Schedule new job window, select the Run as user. Click Save. Your saved scheduled job displays in the list of scheduled jobs. You can later edit or delete the job as required. Now, 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.
|