Forums

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

HTTP POST to create a page with a status-handy

Landon Thomas
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!
October 11, 2023

I am trying to use the below HTML in a page creation to have a handy-status in the page.

The handy-status setup within Confluence is Set: Priority and Status: Choose

 

'<p><ac:structured-macro ac:name=\"status-handy\"><ac:parameter ac:name=\"set\">Priority</ac:parameter><ac:parameter ac:name=\"status\">Choose</ac:parameter></ac:structured-macro></p>'

 

The above is not working. It shows up as a handy-status but seems to not know which setup to use even though I tried setting those with ac:parameter entries.

1 answer

1 accepted

1 vote
Answer accepted
Anastasia Bek _Stiltsoft_
Atlassian Partner
October 20, 2023

Hello @Landon Thomas ,
Thank you for mentioning our Handy Macros for Confluence app!
Based on your question, please refer to the information below:


<ac:structured-macro ac:name="handy-status-macro"><ac:parameter ac:name="set">3</ac:parameter>
<ac:parameter ac:name="status">9</ac:parameter></ac:structured-macro>


Please note that 3 refers to the ID of the status set, and 9 is the status ID.
You need to replace 3 and 9 (ID of status set and status ID) with the ID-s you want to use. To do so, please take a look at the HTTP calls which is made by our app. We suggest doing it in the admin section where e.g. you can get this kind of result https://handy-macros.stiltsoft.net/rest/status?setId=484 where statys set ID is 484. Then, you can also learn the Status ID, which is available in the preview tab.

Status ID.png
Have a lovely day!
Kind regards,
Anastasia

Landon Thomas
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!
October 20, 2023

@Anastasia Bek _Stiltsoft_ thank you for the help! I was able to find the ID I needed and the Status was a text entry. Then it worked!

Egyed András
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!
February 15, 2024

Dear Both,

I would need the Status ID - as dynamically changed value.

That means, I have a table. In a third column I added Timestamp macro.
When I create new row (+copy) below that, I need to over-write the status ID.

Is it possible to get this value somehow?

many thanks, Andras

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events