1
0
-1
2 answers
- 10-1
I actually found a solution for this. You can link the issue by the issue type's ID. That works.
def statusMapping = [ // Zendesk ticket type <-> Jira issue type "bug" : "10167", "feature_request" : "10165", "task" : "10166", "technical_issue" : "10166" ] /* Issue type IDs for PCO Bug = 10167 Story = 10165 Task = 10166 */ def TicketTypeName = replica.customFields."Ticket type"?.value?.value def TicketType = statusMapping[TicketTypeName] ?: "10167" issue.type.id = TicketType
CommentAdd your comment... - 10-1
Hi!
Actually we are limited here by the Jira Cloud rest API which doesn't allow to move issues. There is an Atlassian feature request:
Still I have seen it's possible to move to other types with the script you are using, but only if the issue types shared the same workflow.
Best regards,
Juan
CommentAdd your comment...
Overview
Content Tools
search
attachments
weblink
advanced
I'm having trouble updating Issue's type via Exalate. The typename updates nicely but it doesn't actually update the type of the issue.
The exception shows the type name updates to Task as it should but the issue itself is still the original type in Jira.
Script error for issue PCO-2613. Details: Status - [class:class com.exalate.basic.domain.hubobject.v1.BasicHubIssueType, id:10167, locked:false, description:null, name:Task]. Error line: Script334.groovy:33