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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Fix
    • None
    • JIRA Standalone 3.9.2 on Ubuntu Linux and JDK 1.6.0
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: