Forums

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

User macro works in preview but not when published

Roman Tarakanov
Contributor
September 26, 2018

Hello,

I'm trying to create a template that would list jira issues on the confluence page based on the entered variable

I've found the following macro that is supposed to work:

https://community.atlassian.com/t5/Confluence-questions/Using-template-variables-as-input-parameters-to-jira-gadget/qaq-p/189292

I've created a macro and template based off it and when I create or edit the page everything seems to work. I can see a list of issues in the preview and everything appears to be fine.

However when I save the page I get the following error instead of the list of issues:

"Unable to locate Jira server for this macro. It may be due to Application Link configuration."

Any ideas as to what may be causing this?

Thanks

Confluence version: 6.6.6

JIRA version: 7.9.2

1 answer

0 votes
roman
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 27, 2018

Hi Roman,

I assume Jira and Confluence are connected with Application Links, right? With which method?

Can you share an exception statement from the log when you reproduce the issue?

Roman.

Roman Tarakanov
Contributor
September 28, 2018

Yes, applications (confluence and jira) are connected using app link and it works both ways - I can use standard jira macros for example.

The only error I see in the logs are following:

2018-09-28 13:12:30,624 INFO [http-nio-8090-exec-7] [plugins.synchrony.service.SynchronyExternalChangesManager] performExternalChange Started external change for ContentId{id=7832641}
2018-09-28 13:12:30,627 INFO [http-nio-8090-exec-7] [synchrony.service.http.SynchronyRequestExecutor] execute Initiating request PUT http://127.0.0.1:8091/synchrony/v1/data/Synchrony-fab222d5-4b98-36a6-b2cb-945fa4818b78/confluence-7832641?state-at=@head&state-format=html HTTP/1.1 for 7832641
2018-09-28 13:12:52,729 ERROR [http-nio-8090-exec-8] [confluence.status.service.DefaultSystemInformationService] getModifications
-- referer: https://support.pathwise.aon.com/confluence/plugins/servlet/troubleshooting/view/ | url: /confluence/plugins/servlet/troubleshooting/view/atst-detect-issues/view | traceId: 32ece03923df1cf0 | userName: <blanked>
2018-09-28 13:13:05,341 ERROR [support-request] [confluence.status.service.DefaultSystemInformationService] getModifications
-- referer: https://support.pathwise.aon.com/confluence/plugins/servlet/troubleshooting/view/ | url: /confluence/plugins/servlet/troubleshooting/view/support-zip/execute | traceId: c8e392e69410f40e | userName: <blanked>
roman
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 28, 2018

There is nothing in the stacktrace that would point to a certain issue.

I have found a similar Community question, and looks like they haven’t found a solution: https://community.atlassian.com/t5/Confluence-questions/User-macro-to-display-single-Jira-issue-not-working-as-expected/qaq-p/856351.

Perhaps you could ask Atlassian to clarify if this would only work with built-in macros.

Roman.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events