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

Dynamic forms - ProjectRolePicker is not persisting data

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 6.10.0
    • Fix Version/s: 6.11.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce (Steps are using jobs as example but this can be reproducible in other scripts):

      Reproduced in: Jira 8.0.0 and 8.1.2

      1 - Go to jobs and create a new job 

      2 - Paste this code in Inline script:

      import com.atlassian.jira.security.roles.ProjectRole
      import com.onresolve.scriptrunner.parameters.annotation.ProjectRolePicker

      @ProjectRolePicker(label = 'Project role', description = 'Project role picker')
      ProjectRole projectRole

      projectRole?.name

      3 - Once you select the Project role data, it is not getting selected in the first time, only if you click again in the previous selection, and then when the job is saved the data is not being saved:

       

        Attachments

          Structure

            Activity

              People

              Assignee:
              twozniak Tomasz Wozniak
              Reporter:
              bcarlosdacunha Bruno Carlos da Cunha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel