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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

JIRA 8.14 REST API http 405 error

Hi here!

Dear members,

i would like to use  jira REST api for  in  my  work.    now i have a problem with /rest/api/2/filter   and cannot  solve it

as example i put curl command in the my  linux console and get the 405 http error

curl -D- -X GET -H "Authorization: Basic U2VyaXRvdmljaDoxcTJ3M0UkUiUx" -H "Content-Type: application/json" "https://xxxxxxxx/rest/api/2/filter"
HTTP/1.1 405
x-arequestid: 1241x21562x1
referrer-policy: strict-origin-when-cross-origin
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self'
set-cookie: JSESSIONID=0FDC58F03AC35EFD325784386B04D6C4; Path=/; HttpOnly
x-seraph-loginreason: OK
set-cookie: atlassian.xsrf.token=BKZQ-QP4F-SH4L-NMIR_fdca92c072472a8ccc083214240118fd11321d43_lin; Path=/
x-asessionid: 1f1008x
x-ausername: ovich
allow: POST,OPTIONS
content-type: text/html;charset=UTF-8
content-length: 0
date: Tue, 19 Jan 2021 17:41:52 GMT

 

another requests are working fine

curl -D- -X GET -H "Authorization: Basic U2VZvaXRvdmljaDoxcTJ3M0UkUiUx" -H "Content-Type: application/json" "https://xxxxxxxxx/rest/api/2/project"
HTTP/1.1 200
x-arequestid: 1241x21557x1
referrer-policy: strict-origin-when-cross-origin
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self'
set-cookie: JSESSIONID=A500806BDD396C0FF11B8E373616B098; Path=/; HttpOnly
x-seraph-loginreason: OK
set-cookie: atlassian.xsrf.token=BKZQ-QP4F-SH4L-NMIR_fdd879bed5da2f4b657407fb4b3156a931ce6b26_lin; Path=/
x-asessionid: i1bxh1
x-ausername: ovich
cache-control: no-cache, no-store, no-transform
content-type: application/json;charset=UTF-8
transfer-encoding: chunked
date: Tue, 19 Jan 2021 17:41:46 GMT

[{"expand":"description,lead,url,projectKeys","self":"https://jxxxxxxxx/rest/api/2/project/11700","id":"11700","key":"BIP","name":"BiP","avatarUrls":{"48x48":"https://xxxxxxx/secure/projectavatar?pid=11700&avatarId=13739","24x24":"https://jira.lifetech.by/secure/projectavatar?size=small&pid=11700&avatarId=137..................

 

--------------------

by  tutorial   i see  ---->

GET /rest/api/2/filter

Returns all filters. Deprecated, use Search for filters that supports search and pagination.

This operation can be accessed anonymously.

Permissions required: None, however, only the following filters are returned:

  • filters owned by the user.
  • filters shared with a group that the user is a member of.
  • filters shared with a private project that the user has Browse projects project permission for.
  • filters shared with a public project.
  • filters shared with the public.
  • --------

 i  have no idea to  fix  my problem

could you please help me with it, thank you 

1 answer

Hi,

 

You've essentially answered your own question - the GET method of /rest/api/2/filter has been deprecated and does no longer exist on your version. (So getting a 405 Method not allowed would indicate it will not work with GET, but rather may accept POST.)

 

Now the Search for filters link you mention is for Cloud. I get 404 for that endpoint filter/search endpoint on Server so I would only assume it does not exist in Server.

 

Looking in the latest Server REST API doc, I do not see any such endpoint either: https://docs.atlassian.com/software/jira/docs/api/REST/8.14.1/

 

Chances are that this has just never been implemented for Server.

 

It depends what your aim is by using this, maybe there could be a different approach to get that.

 

Regards,

Radek

thanks! 

Suggest an answer

Log in or Sign up to answer
TAGS
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,104 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