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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.