Forums

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

JSON for removing extra space

Brittany Skinner December 13, 2024

Hi!

I am trying to remove an extra space after the summary field for certain ticket types that are submitted. The only option I have is to use JSON. I tried to do the update field for the summary, but it removed the original text in the ticket type. Can anyone provide the JSON for this? I appreciate any help!

Screenshot 2024-12-13 104659.png

1 answer

0 votes
Kai Becker
Community Champion
December 13, 2024

Hi @Brittany Skinner 

welcome to the community and thank you for your question.

If this is the only thing to tackle should be able to just use plain smart value logic and directly update the summary.
In the edit issue action just paste {{issue.summary.trim()}}

That will remove whitespaces at the end and beginning.

Brittany Skinner December 13, 2024

Hi Kai!

Thank you for responding so quickly. I added this but in the logs it shows "Error while parsing additional fields. Not valid JSON."

Kai Becker
Community Champion
December 14, 2024

Hi @Brittany Skinner 

sorry, I had to be clearer. You do not need the json part. You can put the smart value directly into Edit issue --> summary :)

Screenshot 2024-12-14 at 09.17.41.png

Brittany Skinner December 23, 2024

Oh, this was perfect!! Thank you for all your help :) Merry Christmas!

Suggest an answer

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

Atlassian Community Events