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

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

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events