Hi @here,
Prior to submitting a bug just wanted to clarify whether it’s a bug, or just the documentation which is not updated. It is about the “watchers/watches” field in jira-rest api. According to the documentation this is the structure of the object:
"watcher": {
"self": "https://your-domain.atlassian.net/rest/api/2/issue/EX-1/watchers",
"isWatching": false,
"watchCount": 1,
"watchers": [
{
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"accountId": "5b10a2844c20165700ede21g",
"displayName": "Mia Krystof",
"active": false
}
]
}
Well, this is not true, as the actual structure is:
"watches": {
"self": "https://your-domain.atlassian.net/rest/api/2/issue/EX-1/watchers",
"isWatching": false,
"watchCount": 1
}
and the actual watchers are available under the “self” url. The above mentioned is not a big deal. The whole fun starts when you attempt to retrieve the “watches” in a forge app. The url turns into smth like:
"self": "https://api.atlassian.com/ex/jira/82298579-ed4f-4660-9b6d-4d341671e774/rest/api/2/issue/EX-1/watchers",
Which is also kind of fine, but first before you really call the above self url, if you do so this is what you get in response:
{
"errorMessages": [
"Issue does not exist or you do not have permission to see it."
],
"errors": {}
}
And one would think ok, adding the domain to the manifest would fix the problem. But no, no luck there.
So my question is, is it a bug? Or is it the documentation which should be updated? Or both?
Can the asApp.requestJira process absolute/full urls?