Forums

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

how to open custom dialog on web-item?

Soumya S July 15, 2019

Here is my code which add a workflow button with drop-down on issue page the code written in system-issueoperations-plugin.xml file is -

<web-item key="drop-down1" name="web-item1" section="transitions-all" weight="160">
<label>QARA Testcase Execution</label>
<link linkId="copy_stuff_id"></link>
</web-item>
<web-item key="drop-down2" name="web-item2" section="transitions-all" weight="170">
<label>Add to Test Cycle</label>
<link linkId="add-test-cycle"></link>
</web-item>

 

Screenshot (38).pngI just want open atlassian AUI-dialog i.e. popup which is written in .vm file with my own content , on clicking the web-item Qara testcase Execution as shown in image which I shared 

Thank You

 

1 answer

0 votes
Bill Bailey
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.
July 15, 2019

Your screenshot is from Jira but you have tagged Confluence?

But there is a pop dialog box within AUI -  docs are here: dialog2.html.

It has an example that uses a button click to trigger the dialog box.. I have used this successfully in Confluence user macros.

Soumya S July 15, 2019

Yes you are right it was by mistake tagged as confluence it is jira-server, and thanks for sharing link I made the dialog with the link you provided in .vm file now just wanted to open that dialog on clicking the web-item  Qara-testcase Execution as shown in earlier screenshot.

How should I fetched my .vm file in <link>?

<web-item key="drop-down1" name="web-item1" section="transitions-all" weight="160">
<label>QARA Testcase Execution</label>
<link linkId="copy_stuff_id">___???___</link>
</web-item>

 

and above code is written system-issueoperations-plugin.xml

Screenshot (39).png

 

thank you

Bill Bailey
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.
July 15, 2019

Well I don't know Jira, but for Confluence, I would structure VM code as a user macro and included it in <user-macro> module. For Confluence, the <web-item> module goes in the same file, in this case atlassian-plugin.xml.

Then the web-item <link> parameter refers to the key attribute of <user-macro> module.

For example:

...

<link linkId="your_macro_name"/>
....

and

<user-macro name='your_macro_name' key='your_macro_name' ....

 I would think Jira is similar..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events