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

Can't create Issue, wrong IssueType due to I18N

Open gquintana opened this issue 6 years ago • 0 comments

I get available issue types using:

jiraClient.getProject("JRA").getIssueTypes()

I get an issue type names "Anomalie" (french for "Bug"). Then I create an Issue with this issue type:

jiraClient.createIssue("JRA", "Anomalie")

But I get the error:

net.rcarz.jiraclient.JiraException: Project 'JRA'  or issue type 'Anomalie' missing from create metadata. Do you have enough permissions?
	at net.rcarz.jiraclient.Issue.getCreateMetadata(Issue.java:475)
	at net.rcarz.jiraclient.Issue.create(Issue.java:670)
	at net.rcarz.jiraclient.JiraClient.createIssue(JiraClient.java:77)

When I replace "Anomalie" by "Bug" like the following, it works:

jiraClient.createIssue("JRA", "Bug")

I think getCreateMetadata should use IssueType.id instead of IssueType.name

gquintana avatar Dec 15 '17 14:12 gquintana