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?
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}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks @[deleted]
I have changed the API
Request: https://brimfinancial.atlassian.net/rest/api/3/filter/search
Response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.