Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JSON for removing extra space

Brittany Skinner
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!
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
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!
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

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