Forums

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

Hello All, I want to access filters and other project stuffs using jira rest api.

Vishal Singh June 17, 2023

I suppose its the cloud version of Jira (https://XXXXX/jira/secure/ManageFilters.jspa?filterView=favourites)

this is accessible only when i use company vpn
could you please help me redirect me to helpful document which can be used to get the necessary things from rest api.

i tried using this - https://XXXXX/rest/api/3/filter/my

but it did not work 

gives me this on postman

<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<center>
<h1>404 Not Found</h1>
</center>
<hr>
<center>nginx/1.22.0</center>
</body>
</html>

1 answer

0 votes
Vishal Singh June 18, 2023

i was able to resolve above error by giving /jira...but now ran into a different error while triggering from postman

 <div class="aui-message aui-message-warning warning">
<p>Encountered a
<code>&quot;403 - Forbidden&quot;</code> error while loading this page.
</p>
<p>Basic Authentication Failure - Reason : AUTHENTICATION_DENIED</p>
<p>
<a href="/jira/secure/MyJiraHome.jspa">Go to Jira home</a>

can anyone please provide some assistance here?

Nanda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2023

Looks like you don't have access to the content you are trying to achieve. Are you using the correct API token? https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/

Vishal Singh June 25, 2023

I was able to access it now...i had a missing "/jira" that had to be added

Vishal Singh June 25, 2023

I am now stuck in a different issue...i.e, i need to give edit permission to a user and when i call the https://XXXX/jira/rest/api/2/filter/30656/permission

above API gives me error saying user does not exist...but i use the same username to login to jira

REquest:

{
"type": "user",
"userKey": "bbadrin",
"view": "true",
"edit": "true"
}

 

REsponse:

{
"errorMessages": [
"User: 'bbadrin' does not exist."
],
"errors": {}
}

 

 

Could you provide any assistance here

Nanda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2023

Looks like you need to send the user's account id in the payload for this to work. Check out the Find users endpoint to get the account id and then use the account id in this payload instead of the username.

Nanda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 14, 2023

@Vishal Singh Were you able to use the account id? If that worked, please do accept the answer so that we can confirm it.

Suggest an answer

Log in or Sign up to answer