mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Add Jira Filter View Macro
This commit is contained in:
parent
0988a7aba1
commit
80d3be268d
@ -289,6 +289,10 @@ By default, mark provides several built-in templates and macros:
|
|||||||
|
|
||||||
See: https://confluence.atlassian.com/conf59/status-macro-792499207.html
|
See: https://confluence.atlassian.com/conf59/status-macro-792499207.html
|
||||||
|
|
||||||
|
* template `ac:jira:filter` to include JIRA Filters/Searches. Parameters:
|
||||||
|
- JQL: The "JQL" query of the search
|
||||||
|
- Server (Optional): The Jira server to fetch the query from if its not the default of "System Jira"
|
||||||
|
|
||||||
* template `ac:jiraissues` to include a list of JIRA tickets. Parameters:
|
* template `ac:jiraissues` to include a list of JIRA tickets. Parameters:
|
||||||
- URL (Required), The URL of the XML view of your selected issues. (link to the filter)
|
- URL (Required), The URL of the XML view of your selected issues. (link to the filter)
|
||||||
- Anonymous (Optional) If this parameter is set to 'true', your JIRA application will return only the issues which allow unrestricted viewing. That is, the issues which are visible to anonymous viewers. If this parameter is omitted or set to 'false', then the results depend on how your administrator has configured the communication between the JIRA application and Confluence. By default, Confluence will show only the issues which the user is authorised to view.
|
- Anonymous (Optional) If this parameter is set to 'true', your JIRA application will return only the issues which allow unrestricted viewing. That is, the issues which are visible to anonymous viewers. If this parameter is omitted or set to 'false', then the results depend on how your administrator has configured the communication between the JIRA application and Confluence. By default, Confluence will show only the issues which the user is authorised to view.
|
||||||
|
@ -153,6 +153,15 @@ func templates(api *confluence.API) (*template.Template, error) {
|
|||||||
`</ac:structured-macro>`,
|
`</ac:structured-macro>`,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/* Used for rendering Jira Filters */
|
||||||
|
|
||||||
|
`ac:jira:filter`: text(
|
||||||
|
`<ac:structured-macro ac:name="jira">`,
|
||||||
|
`<ac:parameter ac:name="server">{{ or .Server "System JIRA" }}</ac:parameter>`,
|
||||||
|
`<ac:parameter ac:name="jqlQuery">{{ .JQL }}</ac:parameter>`,
|
||||||
|
`</ac:structured-macro>`,
|
||||||
|
),
|
||||||
|
|
||||||
/* https://confluence.atlassian.com/doc/jira-issues-macro-139380.html */
|
/* https://confluence.atlassian.com/doc/jira-issues-macro-139380.html */
|
||||||
`ac:jiraissues`: text(
|
`ac:jiraissues`: text(
|
||||||
`<ac:structured-macro ac:name="jiraissues">`,
|
`<ac:structured-macro ac:name="jiraissues">`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user