Forums

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

How to combine smart values to edit specific text in the description and add it to the summary

Joann Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2023

Hi,

I have been trying everything,,, and reading all kinds of posts, but none seem to meet what I am trying to do.  I need to capture a specific line in the description and add it to the Summary.  Your help would be GREATLY appreciated as I am down a rabbit hole and going nowhere.

I am trying to change the summary to this:  

Bug - User Name - Every time I try to pull up SPECIFC report from App3 it just spins


I tried using: the first part works - it is the second part that isn't working

This part works:
{{issue.summary.replace("Application Support Request: App3 Bug","Bug")}} -

This part doesn't work:

{{issue.description.substringBetween("Details: ","Requested For:")}}
      This resulted in:   Bug - User Name - 

I also tried varioations of everything I could find... and none got the results I was hoping to achieve:

  • {{issue.description.replace(issue.description.substringBetween("Details: /n","Requested For:"))}}
  • {{issue.description.substringBetween("Details: \n","\n")}}
  • {{issue.description.substringBeforeLast("\n Requested For:")}}
  • and many others that didn't work...

Here is the info in my description, it is autofilled from another application like this:


Description field:


Requested By: User Name
Issue Type: Appp 3.0 Bug

Details:
Every time I try to pull up SPECIFC report from App3 it just spins

Requested For: User Name
Division: BlahdiDah
Department: MultiStuff
Title: Analyst
Phone #: 2225551212
Extension: 51212
Email: user.name@company.com


What I am trying to do is EITHER:

  1. Add a "1. " BEFORE the string"Every time I try to pull up SPECIFC report from App3 it just spins" like below


Description field:

Requested By: User Name
Issue Type: Appp 3.0 Bug

Details:
1. Every time I try to pull up SPECIFC report from App3 it just spins

Requested For: User Name
Division: BlahdiDah
Department: MultiStuff
Title: Analyst
Phone #: 2225551212
Extension: 51212
Email: user.name@company.com

 

Or COMBINE the text "Details:" and the string "Every time I try to pull up SPECIFC report from App3 it just spins"

 

Description

Requested By: User Name
Issue Type: Appp 3.0 Bug

Details: Every time I try to pull up SPECIFC report from App3 it just spins

Requested For: User Name
Division: BlahdiDah
Department: MultiStuff
Title: Analyst
Phone #: 2225551212
Extension: 51212
Email: user.name@company.com

1 answer

0 votes
Jehan Bhathena
Community Champion
September 3, 2023

Hi @Joann Brown ,

You are on the right path, I would suggest you try out this : https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--

Using Match you can use regex to filter out the exact string that you need.

Regex for reference : https://stackoverflow.com/a/23756210

Hope this helps.

Joann Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2023

how exactly?  like where would i put the match?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events