We are building out an API Integration between Jira and another system. Target system field is plain text so the source field in Jira needs to also be plain text. If not, the html code behind the rich text is written into the plain text field.
The only plain text I can find in Jira for Custom Fields in Single line. Any tricks or tips?
Hello @Christopher Johnston
I don't have a solution that I have tested myself, but I did find this discussion elsewhere that started back in 2020. You may find some of the responses in it helpful. There is one from 2023 and one from 2024 that may be useful to you.
Yes, and...to the other suggestions provided:
You note the "only plain text I can find in Jira for Custom Fields in Single line." That is no longer plain text.
The plain text renderer was sunset, making the Short-Text Field type effectively a one-line rich text field, perhaps using the Atlassian Document Format (ADF) for endpoints. Depending upon the direction you are updating, you may need to strip off formatting or add it. For an automation rule calling an endpoint, it could add the text function to a field to strip off markup, such as with {{issue.myField.text}} However in the latest work item endpoints, the typing seems inconsistent...as if the renderer change is still in progress. I recommend watching this community's posts from Atlassian and in the Developer Community to learn more.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make a Jira automation rule that, after removing tags, replicates content from a rich text field into a plain text field.
To eliminate HTML formatting, use a smart value with a regex.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.