Skip to content

Can't create Issue, wrong IssueType due to I18N #220

@gquintana

Description

@gquintana

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions