Add multiple tags to Issue via REST API


I'm currently in the process of writing a migration script to get all our issues from JIRA and GitLab to Space (as there is sadly no script to do this from Jetbrains yet - only YouTrack is available on github).

I'm using the REST API for this - which works really well. I've managed to get all the issues into Space, however I'm currently trying to get all related things into space as well (labels/tags, comments, attachments, etc). 

Currently I'm trying to migrate the labels from GitLab into Tags in Space. However I could only find one endpoint in the documentation to add tags to an issues and that one only adds a single tag to a single issue? Is there a way to add multiple tags to an issue in one call, or even better add multiple tags to multiple issues in one call? Sadly there also was no option to give tags when importing the actual issues.

Any hints would be appreciated :)

Thank you!

Comment actions Permalink

Jens - hi,

Thank you for reaching out to us!

Currently, there is no way to add multiple tags per issue at once. But we have this improvement in the backlog, so please feel free to upvote the related ticket and subscribe to its further changes: SPACE-16231 Import issues API improvements. I've left there a comment based on your case but feel free to comment on it as well.

I apologize for the inconvenience, please let me know if you have additional questions.

Margarita Kolotilova
The Drive to Develop

Comment actions Permalink

Thank you very much. I've up-voted the issue. For now I will simply do all of the calls individually.

Another question - not related to the headline here, but still important for importing the tags and comments into space:
I'm trying to import all of the comments to my issues. However I can't figure out what the field `authorPrincipalId` should represent. I've tried the username and the userId, both do not work. What is the `authorPrincipalId` and how do I get it?

Leaving it empty returns:

value failed for JSON property authorPrincipalId due to missing (therefore NULL) value for creator parameter authorPrincipalId which is a non-nullable



Please sign in to leave a comment.