Hello again :)
I got a finished plugin, and it's working fine. Now I want it to be accessible. I already added a Webitem, and it opens a page with the atl.general decorator.
Now I tought it would be cool, if it opens as an overlay popup like the creat issue or create project dialog.
It is possible to add such a parameter to the Webitem?
Thank you
Community moderators have prevented the ability to post new answers.
That looks great
How/where do you include the JavaScript?
We just keep the javascript in a .js file in src/main/resources/js.
I also forgot to mention that we also define the javascript file as a web resource in the atlassian-plugin.xml.
<web-resource key="SystemTestingPlugin-ExecuteIssueDialog" name="ExecuteIssueDialog"> <resource type="download" name="ExecuteIssueDialog.js" location="js/ExecuteIssueDialog.js" /> <context>atl.general</context> </web-resource>
Also don't forget to add the resource to your velocity template:
$webResourceManager.requireResource("com.csg.jira.plugins.SystemTestingPlugin:SystemTestingPlugin-ExecuteIssueDialog");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For our popup webitems, we specify some javascript like this:
AJS.$(function () { JIRA.Dialogs.executeIssue = new JIRA.FormDialog({ id: "execute-issue", trigger: "a.issueaction-execute-issue", ajaxOptions: JIRA.Dialogs.getDefaultAjaxOptions, onSuccessfulSubmit : JIRA.Dialogs.storeCurrentIssueIdOnSucessfulSubmit, issueMsg : 'thanks_issue_updated' }); });
Then in our atlassian-plugin.xml we define the webitem with a styleClass like this:
<web-item key="execute-test-group-item" name="Execute Test Group" section="tcopsbar-toplevel" weight="10"> <resource type="i18n" name="i18n" location="SystemTestingPlugin" /> <description key="item.executetestgroup.desc" /> <label key="item.executetestgroup.label" /> <styleClass>issueaction-execute-issue</styleClass> <link linkId="branchdefect.link">/secure/CSGSystemTestingExecute.jspa?issueType=TestGroup&amp;parentIssueId=${issue.id}</link> <condition class="com.atlassian.jira.plugin.webfragment.conditions.IsIssueEditableCondition"/> <condition class="com.atlassian.jira.plugin.webfragment.conditions.HasIssuePermissionCondition"> <param name="permission">create</param> </condition> </web-item>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.