Allows custom validation and save callback functions for jira workflow configurations and dashboard items.
Methods
getWorkflowConfiguration
(callback)get a workflow configuration object
Parameters:
Name Type Description callback
WorkflowConfiguration the callback that handles the response
isDashboardItemEditable
(callback)Returns whether the current user is permitted to edit the dashboard item
Parameters:
Name Type Description callback
function the callback that handles the response
openCreateIssueDialog
(callback, fields)Open the quick create issue dialog. The dialog fields may be pre-filled with supplied data. A callback will be invoked when the dialog is closed and will include an array of issues created.
Note: This is unavailable on general admin and project admin pages.
Parameters:
Name Type Description callback
function invoked when dialog is closed, takes a single parameter - array of issues created
fields
Object contains data to pre-fill the dialog with
Properties
Name Type Description pid
ProjectId Project to pre-fill the dialog with
issueType
IssueType Issue type to pre-fill the dialog with
Example
refreshIssuePage
()Refresh an issue page without reloading the browser. This is helpful when your add-on updates information about an issue in the background.
Example
setDashboardItemTitle
(title)Set title of a dashboard item
Parameters:
Name Type Description title
the title to set