Hi @Sri Sandhya ,
Take a look at the documentation here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-filters/#api-rest-api-3-filter-id-owner-put
That should do what you need. Keep in mind that you either need to be the owner of the filter or have Jira admin rights for you to be able to change the filter's owner.
Cheers,
Peter
That method is in experimental mode right. Is that will work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is only one way to know and that is to try.
I haven't done this myself, but I would recommend you just try it out and see if it works.
Cheers,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you try to call the endpoint? Keep in mind that you need to do a PUT not a GET.
And also make sure to remove the /jira/ part of the url, so make sure you use the following url endpoint, for example the below url returns all your filters:
https://<yourinstance>.atlassian.net/rest/api/3/filter/my
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Peter Van de Voorde
url=domain + f"filter/{filter_id}/owner"
payload=json.dumps({
"name": "name of the user"
})
response=requests.request(
"PUT",
url,
headers=headers,
data=payload
)
like this I tried because I dont have account id So I used name and key as well.
But still facing 404 error.
404 b'{"message":"null for uri:..., "status-code":404}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sri Sandhya without the account id it will always return a 404 (This is explained in the documentation).
You'll need to find the account id of the user first, you can use this endpoint to get an accountId for a certain username: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-migration-get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.