Details
-
Suggestion
-
Resolution: Won't Fix
-
None
-
JIRA Standalone 3.9.2 on Ubuntu Linux and JDK 1.6.0
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
- is related to
-
JRASERVER-12984 CreateIssue without specifying reporter fails if the user has Modify Reporter privilege. This could be done better.
- Closed