Can the mention text in an ADF node be updated via Rest API?

I use /rest/api/3/issue/${issueKey}/comment/${commentId} to send a adf object with a modified .attrs.text in a mention node. But it seems not to change it.

Is this intended behavior?

Hi @m.schmidt,

Are you referring to https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-rest-api-3-issue-issueidorkey-comment-id-put and providing a new ADF document as the payload which represents the new version of the comment?

Regards,
Dugald

@dmorrow Yes. I use this endpoint.

Hi @m.schmidt,

It should work. One thing that may not be obvious is that the comment ADF needs to be wrapped in a field called body.

Regards,
Dugald

So your code may look as follows:

body: {
  body: adf
}