Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-41844

Jelly AddPermission not working

    XMLWordPrintable

Details

    Description

      As per the Jelly documentation, we tried to run the simple script :

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
        <jira:CreatePermissionScheme name="New Permission Scheme1">
          <jira:AddPermission projectroleid="10000" permissions="Browse,Create,Comment,Attach" type="projectrole"/>
        </jira:CreatePermissionScheme>
      </JiraJelly>

      Expected result : The permissions would be added to the project role.

      Actual result : The outcome is the following error :

      Jelly Runner
      Jelly script ran and produced the following messages.
      <JiraJelly xmlns:jira='jelly:com.atlassian.jira.jelly.JiraTagLib'> 
        <Error action='AddPermission'> 
          <TagContents>(AddPermission(projectrole=10000)(schemeId=10002)(permissions=[Ljava.lang.String;@21b9bb56)(projectroleid=10000)(group=)(type=projectrole))</TagContents> 
          <ExecutedAs>user=admin</ExecutedAs> 
          <ErrorMessage>
      Result=input
      Permission with key &apos;10&apos; doesn&apos;t exist.
      Permission with key &apos;11&apos; doesn&apos;t exist.
      Permission with key &apos;15&apos; doesn&apos;t exist.
      Permission with key &apos;19&apos; doesn&apos;t exist.
      </ErrorMessage> 
        </Error> 
      </JiraJelly>

      Attachments

        Activity

          People

            Unassigned Unassigned
            rtandon@atlassian.com Ruchi Tandon
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: