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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,144
Community Members
 
Community Events
176
Community Groups

Get URL request displays 302 error code with valid http request

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 Aug 03, 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.

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 Aug 07, 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)

thanks @Hana Kučerová 

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 Aug 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

Atlassian Community Events