Forums

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

How to Add colour in Cloud Jira comment

Prabhuram Kumar March 24, 2021

How to give the color to cloud jira comment using powershell?.Currently we are giving like this in code but its not working.
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "{color:green}Content{color}",
"type": "text"
}
]
}
]
}
}

In On-premise we are able to give without any issue, but in cloud we are not able to give.

Any Suggestion Please ?

1 answer

0 votes
Charlie Misonne
Community Champion
April 21, 2021

I never tried this before for Cloud but out of curiosity I gave it a shot. Apparently the request body should be different. Take this for example:

{"body":{"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Here goes the text","marks":[{"type":"textColor","attrs":{"color":"#008000"}}]}]}]},"visibility":null}

I don't think you can use plain text "green" so you need to find the hex code of the color you need. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events