Hello,
When I specified a permission on a jiraSearchRequestViews module, I get a 404 error when I perform a extract.
Without permission, It works.
https://developer.atlassian.com/cloud/jira/platform/modules/search-request-view/ describe how to use jiraSearchRequestViews and usage of conditions.
And https://developer.atlassian.com/cloud/jira/platform/conditions/ describe usage of condition.
Nowhere it’s indicated that we can’t use has_global_permission in jiraSearchRequestViews conditions.
And if I do so, I got 404 error. It’s a bug or a mistake ?
Exemple :
Without permission :
{
"name": "XX",
"description": "XX",
"key": "com.XXXX.cds.extract",
"baseUrl": "https://XXX.com",
"vendor": {
"name": "XXX",
"url": "http://XXX.com"
},
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"jiraSearchRequestViews": [
{
"url": "/back/XXX",
"weight": 100,
"description": {
"value": "XXX"
},
"name": {
"value": "XXX"
},
"key": "xXx"
}
]
}
}
With permission (this permission is used for other modules and works great) :
{
"name": "XXX",
"description": "XXX",
"key": "com.XXX.cds.extract",
"baseUrl": "https://XXX.com",
"vendor": {
"name": "XXX",
"url": "http://XXX.com"
},
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"jiraSearchRequestViews": [
{
"url": "/back/XXX",
"weight": 100,
"description": {
"value": "XXX"
},
"name": {
"value": "XXX"
},
"key": "XXX",
"conditions": [
{
"condition": "has_global_permission",
"params": {
"permission": "com.XXX.cds.XxX"
}
}
]
}
]
}
}