When I query the API api/issues/
for issues with fields="id"
, I get back an array of issues similiar to this:
[
{ "id": "2-120" }
]
This works for further calls because 2-120
can be used in calls to /api/issues/{id}
. However, I also need to display those IDs to users, which are more comfortable with project-based IDs, like EX-10
. (Also, the whole browser user-interface is structured around those project issues ids)
What I tried:
So, how can I convert global issue IDs, like 2-120
, to project issue IDs, like EX-10
?
After looking at the schema again, I simply overlooked idReadable
. So, a request to api/issues/PA-102?fields=id,idReadable
will give you both types of IDs.
{ "id": "2-120", "idReadable": "PA-20" }