I am trying to get a particular value in the JSON Response receievd after calling an API. I have to send this value in an email report.
{{webhookResponse.body.sprints.velocityStatEntries.split({{VelocityVariable}}).get(2).substringAfterFirst("value=")}}
where VelocityVariable = {{webhookResponse.body.sprints.id.get(0)}}
Also tried
{{webhookResponse.body.sprints.velocityStatEntries.split(VelocityVariable).get(1).substringBefore(",text")}}
I also tried the follwoing without using a response:
{{webhookResponse.body.sprints.velocityStatEntries.split(webhookResponse.body.sprints.id.get(0)).get(2).substringAfterFirst("value=")}}
First thing, I am using Jira Cloud, free edition, and so cannot test what I suggest with Jira Server.
Next, are you certain the smart value velocityStateEntries is populated / available to the automation rule? You can confirm that by writing the value to the audit log and then testing.
Next, splitting on a dynamic delimiter, with a variable, in automation rules is possible. And one of the syntaxes you tried should work:
{{someList.split(someVariable)}}The key is in the details...To understand what is not working, I recommend writing the intermediate values to the audit to log:
Kind regards,
Bill
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.