jira-client icon indicating copy to clipboard operation
jira-client copied to clipboard

How can I create an issue with customized IssueType?

Open maxlpy opened this issue 8 years ago • 2 comments

Hi Guys,

Is there anybody know that how I can create an issue with customized IssueType?

Thanks, max

maxlpy avatar Jan 10 '17 18:01 maxlpy

Our back end administrator has created the "TestIssueType" for me? but when I create an issue with this type? it will return this error:

My code: Issue newIssue = jira.createIssue(JIRA_PROJECT, "TestIssueType") .field(Field.SUMMARY, "Software Review: template test") .execute();

ERROR com.sas.jdt.batch.util.JiraAPIs - Fail to create issue in Jira -> [net.rcarz.jiraclient.JiraException: Failed to create issue]

maxlpy avatar Jan 10 '17 18:01 maxlpy

Hello maxlpy,

There is no API using which we can create issueType for specific project. There is one resource using which we can create issueType but it will create issueType for "Default Issue Type Scheme" which is by default assigned to "Global (all unconfigured projects)".

So I think as of now there is no way that we community can provide you any solution for this.

If anybody has some another findings then please let us know.

Thanks.

Hiren879 avatar Apr 06 '17 20:04 Hiren879