Looking for help labeling a confluence page created via an automation for jira web request

Chris Carpenter February 23, 2024

Hey folks

 

Im using automation for jira to create patch notes for my team in confluence via a web request. Works awesome, no complaints. Recently though, we have started labeling pages in confluence to make them easier for other folks in the company to find... and Im trying to figure out how to get a label added to my page via my web request as well. So far I have not been able to figure it out. Wondering if anyone here knows how?


For reference, here is the web request:

 



{"type":"page","title":"{{version.name}}",
"ancestors":[{"id":MY ID}],
"space":{"key":"MY SPACE"},
"body":{
"storage":{
"value":"
<ac:structured-macro ac:name=\"html-macro\" ac:schema-version=\"1\" ac:macro-id=\"91b9d221-aff4-4444-8286-dfa1746ad3c8\"><ac:plain-text-body><![CDATA[<b>Version Name:</b> {{version.name.jsonEncode}}<br><b>Version Link:</b> {{issue.fields.customfield_13905.jsonEncode}}<br><b>Release Date:</b> {{releaseDate}}]]></ac:plain-text-body></ac:structured-macro>
\n
<ac:structured-macro ac:name=\"info\" ac:schema-version=\"1\" ac:macro-id=\"eb40d1bb-0831-4981-8e0f-d7aff9079ae0\"><ac:rich-text-body><p><strong>Version Summary:</strong></p><p>{{version.description.jsonEncode}}</p></ac:rich-text-body></ac:structured-macro>
\n
\n
<ac:structured-macro ac:name=\"html-macro\" ac:schema-version=\"1\" ac:macro-id=\"91b9d221-aff4-4444-8286-dfa1746ad3c8\"><ac:plain-text-body><![CDATA[<b>Completed Stories</b><br><blockquote>{{issue.fields.customfield_13879.jsonEncode}}</blockquote><br><b>Completed Tasks</b><br><blockquote>{{issue.fields.customfield_13880.jsonEncode}}</blockquote><br><b>Fixed Bugs</b><br><blockquote>{{issue.fields.customfield_13881.jsonEncode}}</blockquote><br><b>Fixed Live Bugs</b><br><blockquote>{{issue.fields.customfield_13882.jsonEncode}}</blockquote><br><b>Known Issues</b><br><blockquote>{{issue.fields.customfield_13883.jsonEncode}}</blockquote>]]></ac:plain-text-body></ac:structured-macro>",
"representation":"storage"}}}

 



Thanks in advance!

1 answer

0 votes
Chris Carpenter February 29, 2024

I am abandoned
Set adrift on an endless sea of knowledge
I thirst, but I know not how to drink
For I lack the understanding of a simple "cup"

Suggest an answer

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

Atlassian Community Events