Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
74:jira_feedback [2019/09/25 09:36] – fnpk | 74:jira_feedback [2019/10/11 07:39] – fnpk |
---|
| |
<!-- Credentials for a (technical) user who is allowed to create issues in the Jira project --> | <!-- Credentials for a (technical) user who is allowed to create issues in the Jira project --> |
<property name="authentication.type" value="basic"> | <property name="authentication.type" value="basic" /> |
<property name="user" value="user" /> | <property name="user" value="user" /> |
<property name="password" value="secret" /> | <property name="password" value="secret" /> |
- The "type" defines if the field is a multi-line text ("text") or a single line string ("string"). | - The "type" defines if the field is a multi-line text ("text") or a single line string ("string"). |
- The "target" defines the id of the custom field in Jira (e.g. "customfield_10101"). | - The "target" defines the id of the custom field in Jira (e.g. "customfield_10101"). |
| - Optional: The targetType defines the type of the Jira field. Supported Jira fields see below. |
--> | --> |
<attributes> | <attributes> |
<attribute ident="annual_savings" type="string" target="customfield_10100" /> | <attribute ident="annual_savings" type="string" target="customfield_10100" /> |
<attribute ident="priority" type="string" target="customfield_10101" /> | <attribute ident="priority" type="string" target="customfield_10101" /> |
| <attribute ident="component" type="string" target="components" targetType="components" /> |
--> | --> |
</attributes> | </attributes> |
- creatorUsername "jdoe" | - creatorUsername "jdoe" |
The "target" defines the id for the custom field in Jira (e.g. "customfield_10101"). | The "target" defines the id for the custom field in Jira (e.g. "customfield_10101"). |
| Optional: The targetType defines the type of the Jira field. Supported Jira fields see below. |
--> | --> |
<system-attribute-mappings> | <system-attribute-mappings> |
</code> | </code> |
| |
=== Custom Endpoint === | === Supported Jira fields ==== |
| * Description: ''targetType=""'' (Empty) |
| * Text Field (single line): ''targetType=""'' (Empty) |
| * Text Field (multi line): ''targetType=""'' (Empty) |
| * Select List (single choice): ''targetType="selectList-singleChoice"'' |
| * Components: ''targetType="components"'' |
| |
If your Jira REST-Endpiont differs from the standard location, you can specify it. If your link to the Jira-API is for example like ''%%https://api.example.com/example/api/2/issue%%'' then you have to specify ''%%https://api.example.com/example/%%'' as value for this property. | Other Jira fields are not supported at the moment. |
| |
| === Custom Endpoint === |
| |
| If your Jira REST-Endpiont differs from the standard location, you can specify it. If your link to the Jira-API is for example like ''<nowiki>https://api.example.com/example/api/2/issue</nowiki>'' then you have to specify ''<nowiki>https://api.example.com/example/</nowiki>'' as value for this property. |
<code xml> | <code xml> |
<property name="jira.rest.endpoint" value="https://api.example.com/example/" /> | <property name="jira.rest.endpoint" value="https://api.example.com/example/" /> |
| |
<code xml> | <code xml> |
<property name="proxy.enabled" value="true"> | <property name="proxy.enabled" value="true" /> |
<property name="proxy.type" value="https"> | <property name="proxy.type" value="https" /> |
<property name="proxy.port" value="3128"> | <property name="proxy.port" value="3128" /> |
<property name="proxy.hostname" value="proxy.example.com"> | <property name="proxy.hostname" value="proxy.example.com" /> |
</code> | </code> |
| |
| |
<code xml> | <code xml> |
<property name="authentication.type" value="oauth20"> | <property name="authentication.type" value="oauth20" /> |
<property name="authentication.oauth20.granttype" value="password"> | <property name="authentication.oauth20.granttype" value="password" /> |
| |
<!-- URL to your OAuth 2.0 Token Endpiont --> | <!-- URL to your OAuth 2.0 Token Endpiont --> |