Skip to end of banner
Go to start of banner

Issues in a released version remain open

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Identify issues planned for a release but remain open after the version release

Scenario

A version to 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.

    JSE-Power-Scripts-open-after-release.png

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

    JSE-Power-Scripts-Create-job-issue-in-released-version.png

  15. Click Save. Your saved scheduled job displays in the list of scheduled jobs. You can later edit or delete the job as required.

    JSE-Power-Scripts-Scheduled-job-comment-post-release.png

    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.

  • No labels