Adding a blank space at the end of the name of a Work Item in Jira Align using API

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Sometimes it is required to add a blank space at the end of the Title of a Work Item for test purposes. It is not possible to use Jira Align UI.

Solution

In order to add a blank space at the end of the Title on any Work Item, a PATCH Call with a payload similar to the one below can be used:

1 2 3 4 5 6 7 [ { "op": "replace", "path": "/name", "value": "Test New Objective2 " }, ]

or a CURL call similar to below:

1 curl -X PATCH "https://site.jiraalign.com/rest/align/api/2/Objectives/761" -H "accept: */*" -H "Authorization: bearer user:[USERID]|[API2.0_TOKEN]" -H "Content-Type: application/json;odata.metadata=minimal;odata.streaming=true" -d "[ { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"Test New Objective2 \" },]"

Updated on April 14, 2025

Still need help?

The Atlassian Community is here for you.