Adding a comment with mentions using Jira API fails with INVALID_INPUT

Steven Lloyd April 26, 2024

I am trying to add a comment with a mention using the Jira API but I get INVALID_INPUT back.  Here is my payload I am sending.  What am I doing wrong?

 

{
    "body": {
        "content": {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "text": "From me: This is a test with a mention @John Doe  Did you get this?"
                },
                {
                    "type": "mention",
                    "attrs": {
                        "id": "64984646846484664",
                        "text": "@John Doe",
                        "accessLevel": ""
                    }
                }
            ]
        },
        "type": "doc",
        "version": 1
    }
}

 

1 answer

1 accepted

1 vote
Answer accepted
Steven Lloyd April 26, 2024

Got it working.

{
    "body": {
        "content": [
            {
                "type": "paragraph",
                "content": [
                    {
                        "type": "text",
                        "text": "From me: This is a test with a mention @John Doe  Did you get this?"
                    },
                    {
                        "type": "mention",
                        "attrs": {
                            "id": "6469846984949498494",
                            "text": "@John Doe",
                            "accessLevel": ""
                        }
                    }
                ]
            }
        ],
        "type": "doc",
        "version": 1
    }
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events