Issues in a released version remain open

This use case combines a JQL Search Extensions keyword with Power Script’s SIL Manager and Scheduler to identify issues planned for a release that remain open after the version is released.

If you are not already using JQL Search Extensions, you can try out these features with a free trial license. Visit our JQL Search Extensions 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

  1. In Jira, go to Settings > Apps.

  2. In the Apps sidebar menu, under POWER SCRIPTS, select SIL Manager.

  3. On the SIL Manager page, select File > New file to create a new file.

  4. Add the following script to the file, and replace MyProject with your project details.

  5. 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?"); }

     

  6. Enter a name for the file, then click the Save icon in the top menu to save the file.

  7. Select Power Apps Config in the left sidebar. The Power Apps Config menu displays.

  8. Select Advanced > Scheduler to display the Scheduled Jobs page.

  9. Click Schedule job. The Schedule new job window displays.

  10. Select Interval for the Job type. Alternatively, use a CRON expression to define the interval.

  11. Set the interval when the script should run, for example, 3d.

  12. Select the Edit icon in the Script field.

  13. Select the saved file from the list and click Select.

    Screenshot of the Select File window in the Power Scripts scheduler.

     

  14. In the Schedule new job window, select the Run as user.

    Screenshot of the Schedule new job window configured as described on this page.

     

  15. 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.

 

Peacock