Hi there,
Using Jira automation, I'm trying to create a site wide rule that would POST a JSON request down to a web server containing all the issues in the version that was released.
My rule looks like this:
1. When: Version released
2. Then: Lookup issues: fixVersion = '{{version.name}}'
3. And: Send web request: POST Custom Data: {{lookupIssues}}
When reading the body of the POST on my recipient server, I get nothing. I'm wondering if:
* Either my step 2 is not right (the audit log is showing associated lookup items
* Or my step 3 is not properly setting a custom data body.
* Or I am not accessing the JSON body correctly server side (pretty sure this is not the case)
I'm thinking the latter. How do I get the lookupIssues to POST as a JSON string?
I also tried {{lookupIssues.asJsonString}} with no luck
Thanks,
Mike
Community moderators have prevented the ability to post new answers.
There could be several causes for what you describe. I recommend adding writes to the audit log as the rule proceeds to check them. And you can try these diagnosis steps.
Kind regards,
Bill
Ah! Thanks Bill.
Learned allot with your post. I was indeed hoping to POST all available data for each issue. Not just a CSV list of keys.
The debugging utilities (new to me, thanks) really helped out. Ended up taking a very different approach:
Not the consolidated JSON array of issues in a single POST, but will work just fine for what I'm after.
Thanks!
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael Caplan,
I tried your solution that will be find for mee too but when the loop work it only save the first jira, and an error pop
Have you had this pb ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i don't use web request because of bad format of the json body and i don't find a sample which work :/ so i try with update page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have additional questions, we encourage you to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our Community Guidelines .
Thanks!
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.