Copy labels from an issue in another instance

William Calesco January 19, 2023

Hi!

I would like to know if is possible to copy labels from an issue in another instance.
For example, I have an issue in Jira Cloud (ISSUE-1) with labels: 'abc, def, ghi' and would like to copy all these labels to an issue in Jira Server (ISSUE-2).

What I've done so far:
From Jira server I sent a rest api to get all labels from the Cloud issue
https://yourdomain.atlassian.net/rest/api/3/issue/{{issue.key}}?fields=labels

Captured and logged the labels
{{webhookResponse.body.fields.labels}}

So far it worked.

However, when I try to add these values to label field using {{webhookResponse.body.fields.labels}}

ISSUE-2 (The label 'abc, def, ghi' contains spaces which are invalid. (labels))

How to make it work?

1 answer

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2023

"How to make it work?"

Remove the spaces

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events