Unable to create a new project due to duplicate status

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

For Atlassian eyes only

This article is Work In Progress and cannot be shared with customers.

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

要約

Unable to create a new project in Jira Service Management (formerly Jira Service Desk), getting "Hmm... We couldn't create your project due to an unknown error. Try refreshing the page to start again." error:

Screenshot1.jpeg

環境

Jira Service Management / Jira Service Desk 7.x, 8.x

診断

The following exception appears in the log on trying to create a project:

2021-01-29 14:55:23,093+1100 http-nio-8080-exec-23 ERROR username 895x2038x1 12w37dm 0:0:0:0:0:0:0:1 /rest/project-templates/1.0/templates [c.a.jira.project.ProjectCreateRegistrarImpl] The handler with id com.atlassian.jira.project-templates-plugin:apply-project-template-handler threw an exception while handling a notification about a project being created
java.lang.IllegalStateException: Duplicate key 10800
at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
at java.util.HashMap.merge(HashMap.java:1254)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at com.google.common.collect.CollectSpliterators$1WithCharacteristics.lambda$forEachRemaining$1(CollectSpliterators.java:64)
at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
at com.google.common.collect.CollectSpliterators$1WithCharacteristics.forEachRemaining(CollectSpliterators.java:64)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.atlassian.servicedesk.internal.manager.WorkflowImporterService.findOrCreateStatus(WorkflowImporterService.java:286)
at com.atlassian.servicedesk.internal.manager.WorkflowImporterService.createStatusMapping(WorkflowImporterService.java:247)
at com.atlassian.servicedesk.internal.manager.WorkflowImporterService.lambda$parseWorkflowForStatusMapping$4(WorkflowImporterService.java:236)

原因

The key here is this string from the above log snippet:

at com.atlassian.servicedesk.internal.manager.WorkflowImporterService.createStatusMapping(WorkflowImporterService.java:247)

Jira is unable to create a status mapping due to a duplicate status under ⚙ > Issues > Statuses

For example, it may look like this:

ソリューション

Rename one of the statuses to have a different name as status name has to be unique.


最終更新日 2021 年 4 月 11 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.