Confluence: JIRA Macro is not recognized automatically

Mariia Golobotovskaia September 26, 2024

Hey, 

I'm trying to create a list of issues from JIRA in Confluence. I have created a column in excel with values as: {jira:key=PROD-****} and copy pasted it into a table in Confluence. But it didn't detect it as macro and requires on each row to delete the last symbol "}" and reenter it to detect the macro.

Is it an expected behavior? The only solution I see is doing it in source editor is there some simpler way?

Overall I need to have list of Keys, summaries and statuses in one column and have customizable column on the right for users input in confluence. 

Confluence is the only way to access JIRA as a database and even there it seems that it is not really possible to work with it properly...

Is there any solutions for this?

Cheers

 

1 answer

1 accepted

1 vote
Answer accepted
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2024

That would make sense. The {macroname syntax is javascript based macro assist, but it is not how Confluence stores such macro.

 

If you look at the storage format, the macro looks as this:

2024-09-26 10_53_13-Greenshot image editor.png

 

At the same time though, you cannot just paste this into Confluence while editing a page, because it will treat it as random html text, not as a macro. You would need to modify the storage format to insert it the macro, with something like this: https://marketplace.atlassian.com/apps/1215664/source-editor-for-confluence?hosting=datacenter&tab=overview

 

Overall, what you describe sounds like expected behaviour to me.

Mariia Golobotovskaia September 26, 2024

Ahoj Radek,

Yes, I went to source editor and say that the issue is that my  {jira:key=PROD-****} was interpreted as text. But I would expect that it would be detected automatically that it is macro format without the need to trigger it by closing of the clause. 

And I have tried to do changes in the editor (meaning to replace the text like interpretation with javascript syntax but it seems that somewhere it went wrong I will try again tho. 

The issue is that I have limited access to additional add-ons.

But thank you for the reply. 

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2024

If you paste the issue url into the page, it should convert the link into a macro automatically as well, could be another option that came to mind.

Since it is able to react to the pasted content in this case, perhaps that ignoring your macro pastes could be considered a bug, or suggest/call for an improvement at the very least.. will check the backlog if I can find an existing bug/suggestion for this later on.

Mariia Golobotovskaia September 26, 2024

Hey Radek,

I am hoping that it would be fixed, but I'm not sure how to create a request for a fix with them. Let me know if there is a way to make a change request out of this. 

KR,

M

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2024

There is a link to raise a request at the bottom of https://support.atlassian.com

I didn't find anything in the backlog around this so I'm guessing it would be added there once you describe this to someone at Atlassian. (You'll get a link to it from the support agent when they create it.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events