Jelly CreateIssue tag with invalid project-key attribute fails, but with a not very useful error message

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Won't Fix
    • None
    • Environment:
      JIRA Standalone 3.9.2 on Ubuntu Linux and JDK 1.6.0

      A CreateIssue in a Jelly script with an invalid or missing project key fails, but with a not particularly useful error message.

      Here is the Jelly script:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
        <jira:CreateIssue project-key="ABC" summary="It is broken" assignee="idaniel" reporter="idaniel"/>
      </JiraJelly>
      

      It fails with the following message:

      <JiraJelly xmlns:jira='jelly:com.atlassian.jira.jelly.JiraTagLib'>
        <Error action='CreateIssueDetails'>
          <TagContents>(CreateIssue(summary=It is broken)(reporter=idaniel)(project-key=ABC)(assignee=idaniel))</TagContents>
          <ExecutedAs>user=idaniel</ExecutedAs>
          <ErrorMessage>Tag CreateIssue requires (jelly.username, jelly.project.id) variables to be set in the Context</ErrorMessage>
        </Error>
      </JiraJelly>
      

      I get the same error message if I create it without a project-key attribute, or with project-key="".

      Any chance of a more meaningful message, for example, you must specify project-key, or project-key is not for an existing project?

      Cheers,
      Ian

            Assignee:
            Unassigned
            Reporter:
            Ian Daniel [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: