Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Update Description field on Transition with a smart value

I am looking to update the description of an issue on a transition with a post function.

The goal is to replace a certain piece of the url with the {{issue.summary.charAt(2)}} from the original ticket summary.

Example: Insert this into the description with the post function the value of the field set to: www.website.com/{{issue.summary.charAt(5)}}/issue

The outcome I would expect from a Issue Summary: Test 3 would be www.website.com/3/issue

but the description is updated and does not convert the smart value. sting www.website.com/{{issue.summary.charAt(5)}}/issue

Any ideas on how to make this execute and fill in the correct number from the summary or other workaround

 

1 answer

0 votes
John Funk Community Leader Mar 18, 2021

Hi @FR Jira Dev  - Welcome to the Atlassian Community!

What is it actually returning? 

Hi John, I actually got it to return correctly with a less than ideal workaround using {{issue.summary.substringBetween("e","s")}} but it makes it so we cannot have spaces in the summary.  What I really want is characters at 5,6 but only if they are numerical values of 1-9, ignore spaces. 

The issue is when here is a single digit example 5 vs 12 it would return correctly.  Is there a way to do this? Right now it is causing an error with a single digit because it returns a digit for char 5 but char 6 is a letter when a single digit.

Example - Size 1 Shirt would return www.website.com/1/issue

But if it was Size 12 Shirt would return www.website.com/12/issue

Using the above it has to have a summary of  Size1 Shirt and Size12 Shirt is required.

Is there an approach to have spaces and only return digits?

Hi @FR Jira Dev -- Welcome to the Atlassian Community!

What else is in your summary that you are pulling the value from?

Have you considered using a RegEx expression and the Match() function to pull the values out?

https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/#Smartvalues-textfields-match()


Best regards,

Bill

Like John Funk likes this
John Funk Community Leader Mar 19, 2021

@Bill Sheboy probably has the best suggestion for this, using RegEx expression. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

284 views 16 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you