In mediawiki LocalSettings specify the JIRA Hostname:
$jikiJiraHost = "https://jira.atlassian.com";
Specify the JIRA User Name:
$jikiJiraUser = "[email protected]";
Specify the JIRA User Password:
$jikiJiraPassword = "ILoveC@ts";
Specify any custom fields you have in your JIRA:
$jikiExtraParams = array
(
array("param"=>"myParamNameInWiki","jql"=>"\"My Field Name in JIRA\""),
);
Optionally define another field to use in place of description for the full details view (has to come before require of Jiki.php file in LocalSettings.php)
$jikiFullDetailsField = "customfield_10800";
In any wiki page include the following tag:
<jira></jira>
As long as the field is a basic JIRA field or you have configured it in LocalSettings:
<jira project="GO,FP,HELP"></jira>
<jira>text to search for</jira>
<jira project="GO" reporter="gvoss"></jira>
Or for an advanced user or where the JIKI implementation of JQL is insufficient:
<jira jql="project = GO AND reporter in (gvoss)"></jira>
- id - synonymous with key
- key - the Key of the issue (e.g. ABCD-1234)
- issuetype - the type of issue (e.g. bug)
- project - the key of the project (e.g. ABCD)
- fixversion - the fix version (e.g. 1.0.0)
- affectedversion - the affected version (e.g. 1.0.0)
- reporter - username of the reporter (e.g. gvoss)
- assignee - username of the assignee (e.g. gvoss)
- status - name of the status (e.g. In Progress)
- sprint - ID or exact name of the sprint (e.g. 786)
- resolution - status of the resolution (e.g. resolved)
- labels - any labels applied to the issues (e.g. cats)
- component - any components applied to the issues (e.g. content management)
- epiclink - name of the epic link (e.g. loading screen)
The following parameters exist to allow controlling of format:
- jikiformat - allows you to control the formating
<jira jikiformat="html"></jira>
- jikifulldetails - allows you to control how much detail is printed to the screen
<jira jikifulldetails="true"></jira>