Forums

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

In which file need to declare @param and how to access the same?

srijani lahiri March 20, 2019

I need to change the description of an input field as well as need to provide the macro name as "Global Video". Below is my code for atlassian-plugin.xml :

<xhtml-macro name="global video" class="com.kpmg.globalvideo.macro.globalvideo" key='globalvideo-macro'>
<!-- <description key="globalvideo.macro.desc"/> -->

<description key="A multimedia macro that plays video and audio files from KPMG Global Video portal"/>
<category name="formatting"/>
<!-- ## @param MYNAME:title=MY TITLE|type=string|desc=MY DESCRIPTION|required=true|multiple=true|default=MY DEFAULT VALUE -->
<parameters>

<parameter name="URL" type="string" required = "true" desc = "Enter Global Video URL" title ="Enter Global Video URL" >

</parameter>

<!-- ## @param MYNAME:title=MY TITLE|type=string|desc=MY DESCRIPTION|required=true|multiple=true|default=MY DEFAULT VALUE -->


<parameter name="Width" type="string" default = "800px" desc=" IFrame width (Default 800px)" />
<parameter name="Height" type="string" default = "600px" desc = "IFrame height (Default 600px)" />

</parameters>

</xhtml-macro>

 

1) desc in parameters does not work

2) As you see above I gave parameter name as 'URL' and description as 'Enter Global Video URL' . What I want is the label of the parameter should show 'Enter Global Video URL'. But its showing 'URL'. And I can't provide such big text in parameter name. So what is the way to show the mentioned text as parameter description. 

3) Similar problem with Macro name. I want the macro name to be displayed on UI as 'Global Video' but it supports only 'Global video' ( v is in smaller case only). How to solve this?

1 answer

0 votes
JP _AC Bielefeld Leader_
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.
March 20, 2019

You might want to ask this question on the developer community:

https://community.developer.atlassian.com/

as you're asking for support while building an app/addon.

I could support you with questions for a user macro with that functionality

Best

JP.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events