I am trying get values from a comment using substringBetween but nothing shows up.
Logging these values
assignee is {{issue.comments.last.body.substringBetween("Opsgenie\\]: "," acknowledged")}} - nothing shows in log
body with text handling :{{issue.comments.last.body}} - body shows in log
https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-
Hi Pat,
I see that you want to try to use Jira Cloud's automation in order to parse out the user's full name value in order to try to assign that user an issue in Jira.
Unfortunately the smart values in Jira Cloud automation cannot work in this manner. While the smart values might be able to capture some text on the field, it can't go the next step, which for Jira Cloud would actually require that we know the user's accountId in order to be able to assign to them via a programmatic way here. It was once possible to assign directly to a username in Jira Cloud, but changes documented in Major changes to Jira Cloud REST APIs are coming to improve user privacy note that there were changes to Jira Cloud here.
That said, perhaps if we could get OpsGenie notifications to also include that user's accountId somehow in the notifications, we might be able to key off that. I have to admit that I'm not an expert in OpsGenie myself, so it's not clear to me if this is something that OpsGenie notifications can be configured to include.
Perhaps in OpsGenie adding the Integration for Jira Software might help get you closer to your desired outcome. I'm not sure if you have this setup yet, but it does seems to indicate that we can configure Jira to create issues based on actions in OpsGenie.
I hope this helps.
Andy
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.