Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create a tag with message using REST API

Leo Muller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2019

In the 2nd version API docs, the request payload to create a tag is:

'{
    "name" : "new-tag-name",
    "target" : {
        "hash" : "a1b2c3d4e5f6",
    }

I want to know if there's a way to set the tag message using this API.

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2019

Hi @Leo Muller,

You can pass it via message attribute:

{
"name" : "new-tag-name",
"message": "tag-message",
"target" : {
"hash" : "a1b2c3d4e5f6"
}
}

Cheers,
Daniil

Leonardo Muller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2019

Hi Daniil,

Thanks for the reply, but the documentation has no mention to the message attribute. Do you know if there's a way to ask a documentation review?

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2019

I agree, documentation format is sometimes quite confusing. And in this particular case request payload reference seems even misleading. Luckily there's an example which, even though not complete, is way more useful.

As far as I know fixing and updating documentation is already on the roadmap.

Leo Muller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 23, 2019

Thanks for the responses and attention Daniil.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events