Forums

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

How to create dynamic parameters in confluence macros body?

Olzhas Ahmatullin
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!
December 10, 2021

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 Champion
January 3, 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
atlassian, confluence whiteboards, whiteboard templates, template contest, visual collaboration, atlassian learning, confluence community, brainstorming tools, agile planning, team productivity, confluence templates, share your template

Share Your Confluence Whiteboard Template for a Chance to Be Featured in the Product! 🏆

Want to leave your mark on Confluence? One winner will have their whiteboard design added into Confluence for all users to access! This is your chance to showcase your creativity, help others, and gain recognition in the Confluence community.

Share your template today!
AUG Leaders

Atlassian Community Events