Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is is possible to use Text handling features on comments for Automation for Jira

Pat Ryan
Contributor
April 10, 2020

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-

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2020

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events