The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Get URL request displays 302 error code with valid http request

SK
August 3, 2022

I created a button in trello for getting an issue from JIRA and posting the httpresponse as comment. I have connected the JIRA instance and authorized it before creating this button.

get url "<<JIRA URL> with the Card Name", and post comment "{httpresponse}"

However i receive 302 error when i execute the button.

Running "API" on board "TrelloJira Integration"

There was an error requesting the URL <<GIVEN_URL_2_JIRA>>

 

When I manually select the GIVEN_URL_2_JIRA, the URL navigates to JIRA and correct id is displayed.

Could you let me know what could be the reason for the failure?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Hana Kučerová
Community Champion
August 3, 2022

Hi @SK

welcome to the Atlassian Community!

To what exactly URL are you sending your request (what is GIVEN_URL_2_JIRA)? Thank you.

SK
August 3, 2022

Hi @Hana Kučerová This is the exact request and response I am trying to get as comment

get url "https://brimfinancial.atlassian.net/jira/software/c/projects/OPS/issues/?jql=summary~{cardname}", and post comment "{httpresponse}"

Hana Kučerová
Community Champion
August 7, 2022

Hi @SK ,

thank you, this way you will get the whole HTML page, I don't think this will work for you.

Usually Jira REST API is used - in your case you will probably need the endpoint Search for issues using JQL (GET)

SK
August 9, 2022

thanks @[deleted] 

I have changed the API

Request: https://brimfinancial.atlassian.net/rest/api/3/filter/search

Response

{
    "maxResults"50,
    "startAt"0,
    "total"0,
    "isLast"true,
    "values": []
}
I am not getting any values in the filter. it is empty but returns 200 OK . do you know what i am doing wrong? i checked multiple sources .. any pointer please?
additional information
I am JIRA admin and have necessary permission to browse project or create filter.
Hana Kučerová
Community Champion
August 16, 2022

@SK If you are sending GET request, you need to add search query to the URL (parameter jql, plese see the documentation I've shared before)

TAGS
AUG Leaders

Atlassian Community Events