Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation creates filter with specific permissions

Deborah Wong 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

1 accepted

2 votes
Answer accepted
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 

Deborah Wong February 19, 2025

Just wanted to close the loop and say that what you suggested worked- I tweaked it a bit to encompass editing permissions.

Screenshot 2025-02-19 at 2.42.59 PM.png

Like Tomislav Sablic likes this
Tomislav Sablic
Contributor
February 20, 2025

Glad to help!

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 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