Automation creates filter with specific permissions

Deborah Wong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2025

I have an automation that is run monthly that creates a filter using my authorization token. I would like it to also set  "Viewers" and "Editors" to a specific project(or to My Organization) and for it to be starred. Is that possible? Currently my automation looks like so:

Screenshot 2025-02-06 at 3.02.13 PM.png
Filter then is created that sets "Viewers" and "Editors" both to Private which is not helpful because I need others on my team to be able to use it. 

2 answers

2 votes
Tomislav Sablic
Contributor
February 7, 2025

Hello,

You just need to upgrade your payload for the REST API call. Something like this:

{
"name": "My Custom Filter",
"description": "Filter for MYPROJECT board",
"jql": "project = MYPROJECT ORDER BY created DESC",
"favourite": false,
"sharePermissions": [
{
"type": "project",
"project": {
"id": "10001" // Replace with the actual project ID
}
}
]
}

 

Please refer to the documentation here and check request body:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-filters/#api-rest-api-3-filter-post 

0 votes
Gustavo Ezequiel Szemruck
Contributor
February 7, 2025

Hello, @Deborah Wong 

hide the API for security reasons. I see that you covered only one section, but the full URL is still visible in the image.

Best regards!

Deborah Wong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2025

TY- (facepalm) going back and hiding it!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events