Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create dynamic parameters in confluence macros body?

I am developing confluence plugin using Atlassian SDK.

The thing i want to do is dropdown list with dynamic values and dynamic number of values. This dropdown list should be in confluence macro body.There is some API on internet where i get these values from.

Now i am hard coding these values in atlassian-plugin.xml file. Tag <xhtml-macro><parameters><parameter><value>. . . 

 

The options I've tried :

  • Velocity template
  • All types of xhtml-macro, category
  • Rest request to my backend app (Stuck with next exception - The origin server did not find a current representation for the target resource or is not willing to disclose that one exists)
  • I even tried to create atlassian-plugin.xml and export it to target/classes folder

 

Can someone tell me the right solution to achieve my goal please?

atlas-version

ATLAS Version:    8.2.7

ATLAS Home:       /opt/homebrew/Cellar/atlassian-plugin-sdk/8.2.7/libexec

ATLAS Scripts:    /opt/homebrew/Cellar/atlassian-plugin-sdk/8.2.7/libexec/bin

ATLAS Maven Home: /opt/homebrew/Cellar/atlassian-plugin-sdk/8.2.7/libexec/apache-maven-3.5.4

AMPS Version:     8.1.2

 

Снимок экрана 2021-12-09 в 15.42.07.png

1 answer

0 votes
Pramodh M Community Leader Jan 03, 2022

Hi @Olzhas Ahmatullin 

What we need to see is how WebDAV Protocol is implemented while developing the Confluence tool.

Even when we say dynamic, either the rule or pre-populated value should be present in order to show that in a field. May I know how are you achieving that?

Here's a plugin that is useful and suffices your requirement

https://marketplace.atlassian.com/apps/1212925/easy-forms-for-confluence?tab=overview&hosting=datacenter

Thanks,
Pramodh

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

42,363 views 29 133
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you