Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

rest api - how to set sharePermissions for a project?


my JSON game isnt strong, and i didnt fully undersdtand the documentation. 

Im createing a filter via API call with the below body:

"jql": "project ={{issue.project.key}} and type = Bug and resolution is empty",
"name": "All Open Bug2s",
"description": "Lists all open bugs",
"sharePermissions":["type":"project","project": {"id": "{{}}"}]


with out the 'sharePermissions' all is good.  how should i build it so the request passes?

1 answer

1 accepted

0 votes
Answer accepted

The way I'm reading the API is that you can't set share permissions when you create a filter. I think you have to do it in a separate operation.

Docs for Create filter say this:

Creates a filter. The filter is shared according to the default share scope. The filter is not selected as a favorite.

So I would try to Add share permission

curl --request POST \
--url '{id}/permission' \
--user '<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "type": "group", "groupname": "jira-administrators" }'

Also, are you making two web requests in the same rule?

"sharePermissions":["type":"project","project": {"id": "{{}}"}]

Oh, probably because there's no Smart Value for Project ID. Ugh, what a hassle.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,174 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you