Hello,
we want to use "Send web request action" in Global Automation rules, to receive Epic/Issue updates in our system, like this:
Problem: The HTTP POST content is delivered only in rest/api/2 format (as also seen in the article above)
We expect/want to receive it in rest/api/3, so our question:
Thank you for hints and/or recommendations.
Best Regards,
Andreas
Welcome to our Community.
What do you mean "our system"? Is it another system which receives jira epic information whenever the epic is updated?
Thanks,
YY哥
Hello,
correct: Initially, we use the API to create and updates Epics/Issues from changes in our system. (Here we already use the rest api v3 and this is working fine!)
Now/Additionally we want to receive also the changes done in JIRA: so we created these Web requests that call our system via HTTP POST request and providing the new information of that Epics/issues. (This is how it also works/worked in our Jira Server instance, using "Automation for JIRA")
Unfortunately the rest api v2 is sent here, which does not match for all the fields... our exact problem is in the field "description":
In rest api v2 it is a simple string, like this:
"description": "Problem: \r\n- Edit2"
In rest api v3 it is like this:
"description": {
"content": [
{
"content": [
{
"text": "Problem: \r\n- Edit2",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
So we hope that we do not need to implement both rest api versions...
But we cannot find a way to change the output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You meant whenever a jira epic udpates, it will trigger the automation rule to send a web request to update your internal system, right? The API is your system's API, right?
It will be better to show the screenshot of your automation rule as well as the REST APIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, whenever some jira epic/issue values are changed by users (groups of initiators), we want them to update in our internal system. Our API / interface wants to user the jira rest/api/3 format (as we do it for creation/updates already).
Configuration: see screenshot #1
Verify configuration: see screenshot #2
-> As you can see: we receive user-data behind the HTTP POST from JIRA automation only in /rest/api/2 format... but we'd like to have it in /rest/api/3 format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the details. Please see this answer and hope it helps you. We need to custom the data in the request body as per the definition of REST API in your internal system.
Thanks,
YY哥
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @YY Brother
so actually the answer is:
In the context of the "Send web request action", it is currently not possible to get the Jira-Data after HTTP POST in /rest/api/3 format.
It is avaible in /rest/api/2 format only.
Alternative solution understood:
Use the possibility to create an user-specific response for our Internal System.
Thanks for your support!
Best Regards,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.