How to get project categories via API?

Aziz Khakulov's Avatar

Aziz Khakulov

22 Jun, 2017 12:11 PM

Currently the API only returns the numeric category_id for an issue. Is there any way to get the list of categories for a project in order to get their names and use those instead of the numeric ids?

  1. 1 Posted by richr on 13 Jun, 2018 03:14 AM

    richr's Avatar

    yes, there is a way.
    some code in "Issue.php" probably needs to be changed - just like a few lines of code need to be added in order to get "labels" out from an "issue" API call.

    Addendum: so are you looking for the text category names available of a specify project or the text category name the issue is assigned to?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac