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

Apply create constrained issue fragment to multiple projects

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.5.7
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 52
    • Critical Points:
      1

      Description

      We can only apply the create constrained issue script fragment to an individual project in one go. This is due to the way we built the link for that web item. Meaning users have to set multiple constrained issue fragments up across different projects.

      Ideally we would give the option for the user to generate the link parameters using an inline script or via whatever project is selected (via behaviours).

      The workaround for now is to use a parameter in the link which provides the current project id. See example below:

      <web-item key='link-create-blocking' name='ScriptRunner generated web item - link-create-blocking' section='operations-top-level' weight='70'>
        <label>Create blocking</label>
        <styleClass>sr-create-bound-issue</styleClass>
        <link linkId='link-create-blocking'>/jira/secure/CreateIssue.jspa?pid=${project.id}&amp;issuetype=10004</link>
      </web-item>
      

      Will Davis hit this issue, and assumed you could set the correct project via behaviours.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rholban Roland Holban [X] (Inactive)
              Reporter:
              amarkham Adam Markham
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: