Hi Team,
I am trying to create an automation rule to auto create "fix version" in Jira in an incremental manner.
Example, if the latest fix version that was created in the project was Release25, then the rule when triggered creates Release26.
Its failing with error, any help in troubleshooting the problem is greatly appreciated. Thankyou.
Here is what I tried doing:
1. The rule is scheduled to run every 4 weeks and as a first step, I am trying to fetch the latest release in the project.
While I tried logging the response, it's blank. So I assume here is where the problem is. But I tried the same in postman and it does return a response and its what is expected.
2. Create Variable : LatestVersionName
3. Create Variable : nextVersionName
4. Creation of nextversion
Response of the rule:
First thing, the audit log image you show does not match the rule images shown. That is apparent as the log shows a write to the log with "API Response: " but that is not present in the rule images.
Please post your entire current rule, in a single image, and of the current audit log details showing that rule execution. Posting the rule in one image will help provide context, and may be done using a screen capture tool or browser addon which support scrolling page capture.
Next, when you get the existing versions with the Send Web Request action, the result should already be in JSON. Why are you adding the function asJson when extracting the version name?
I recommend writing the entire web response smart value to the log to confirm it contains what you expect before trying to parse it.
Finally, once that is done, you may find this is why the created variable is empty, leading the later rule error.
Kind regards,
Bill
Thanks for the response Bill.
Here is a screenshot of the rule in one image:
the current audit log details showing that rule execution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that information, and...
The smart value to see the entire webhook response message would be:
{{webhookResponse.body}}
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--webhookResponse--
And for that REST API endpoint to get the list of versions, I believe you want this smart value expression:
{{webhookResponse.body.last.name}}
Although given the possible number of versions could eventually be more than the 100 limit, you may want to use this one instead as it supports query and status parameters for filtering results:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill. Let me update the rule as per your comment and try again.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.