Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-920

Versionmanager works properly in JIRA 6.4.x but NOT in JIRA 7 in scriptrunner

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Support Request
    • Affects Version/s: 4.2.0.2
    • Fix Version/s: None
    • Component/s: Listeners
    • Environment:

      Linux, local dev instance via atlas sdk AND a server instance (replica from production server)

    • Critical Points:
      0

      Description

      I have this script that is supposed to propagate changes to versions in specific project to another projects that target the same version. The main goal was to eliminate maintenance across different projects that use that same exact version (create, delete, update, release...etc).
      This is meant to be a workaround for providing a set of global fixversions that all projects can subscribe to. In nutshell, we have around five projects that target same set of versions that belong to an upstream open-source project working on Linux Kernel. so the version of interest is 'Kernel*'. Script works fine on JIRA 6.4.* all changes to any 'Kernel*' versions on that Kernel project are mirrored on the subscribing projcts. When tested on JIRA 7, only creations seems to work but version updates do not work.
      PROBLEM:
      versionmanager.editVersion methods don't seem to work properly and don't throw exception either. *versionmanager.createVersion does work and i can see versions created in other projects, but not editing.
      SCRIPT ATTACHED FOR REVIEW.
      Not sure if this is a bug/sort of deprecation on JIRA API or problem with scriptrunner.

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            amro.hassaan@linaro.org amro hassaan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: