Retrieve Tags for an issue via API
Maybe I'm going blind, but I can't figure out how to retrieve the tags associated with an issue. Surely, there must be a way to get all visible tags attached to an issue ticket, correct?
Please sign in to leave a comment.
Hello, Steve!
Description of tag-related methods is available here: http://confluence.jetbrains.net/display/YTD3/Tags-related+Methods
Hope, this will help.
Regards,
Ekaterina
Thanks for the response. I've been looking at the API docs for tags, but I still can't figure out how to use it to get the tags an issue ticket.
Hi Steve.
This is documentation about YouTrack Rest API http://confluence.jetbrains.net/display/YTD3/YouTrack+REST+API+Reference.
And this is what you need http://confluence.jetbrains.net/display/YTD3/Tags-related+Methods.
Regards,
Alexander
But that API only allows me to:
* get all available tags for the current user
* get information about a tag by name
* create a new tag definition
* update a tag definition
* delete a tag definition
What I'm looking for is a call I make after I do GET /project/issues to get the data for an issue so that I can retrieve the tags associated with the issue.
I use the REST API to create a dynamic burndown report and storyboard. Some tickets are tagged with "customer" and I'd like to reflect that in the report, but In can't figure out how to retrieve the tags associated with a ticket after I've run the query. The only alternative I see is to introduce a custom field instead since these are returned in the XML, but I'd rather not change all the tickets we have.
Optimally, I'd like to get inside the response XML for GET /project/issues, not only the values for all custom fields, but also all associated tags for each issue as they are visible to the user who did the query.
Hello, Steve!
Sorry for inconvenience. We do not have such rest method for tags. I've created issue for your request: http://youtrack.jetbrains.net/issue/JT-10843 , so you can vote for it or subscribe for notifications.
Does that ticket say this is fixed? If so, any idea how to do it? Thanks!
Hi, let's continue the discussion in http://youtrack.jetbrains.net/issue/JT-10843.