Forums

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

jira issues macro wiki markup not recognized

doudou
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!
September 23, 2021

Hi

I'm trying to update a confluence page through the rest api using wiki markup.

Until I use macros, everything is fine, but as soon as I try to use a macro like jira issue, I'm not managing to make it work. In addition to an error message that looks like it's missing the jira server id, the rest of the macro is not recognised.

I'm using this markup :

{jira:columns=type;key;summary|url=https://myjira.com/browse/MYPROJECT-2}
I was expecting confluence to understand that, but it says it's not finding the issue (the issue exists for sure) then when I try and edit the page, and go in the macro (which is apparently recognized) in the display options, it doesn't show the columns that I select in the markup, just an empty list.

Does anybody knows what's happening here ? it's very frustrating I have to say.
Thanks in advance for all the help.

1 answer

1 accepted

1 vote
Answer accepted
Hana Kučerová
Community Champion
September 27, 2021

Hi @doudou ,

welcome to the Atlassian Community!

I've looked into the macro and the parameters are: columnIds, columns, key, serverId, so I would try something like:

{jira:columnIds=issuekey,summary,issuetype|columns=key;summary;type|key=MYPROJECT-2|serverId=xxx}

where xxx needs to be replaced by your real server id 

doudou
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!
September 27, 2021

So, it works even without the serverId.

So I have 2 questions :

Where did you find the documentation explaining those parameters ? I found something on atlassian before, maybe didn't read it correctly.

and the second is, where do I find the serverId ? (I'm not administrator of confluence here)

Thank you for your help, it really unblocked me

Like Hana Kučerová likes this
Hana Kučerová
Community Champion
September 27, 2021

@doudou 

Great! Would you mind sharing the detail, how exactly does your request looks like (I'm especially interested in the body of the request, because it doesn't work for me :-))?

Thanks a lot!

 

Where did you find the documentation explaining those parameters ? I found something on atlassian before, maybe didn't read it correctly.

I tried to find the documentation, but I wasn't sucessful. So I just added one Jira macro to my confluence page and inspected it in the edit mode to see the definition.

 

and the second is, where do I find the serverId ? (I'm not administrator of confluence here)

It is available in the administration -> Licence Details, so you won't be able to get it without admin rights.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events