Jira integration question
I have the integration working mostly but I have a couple questions. I have a custom field named JIRA_URL that I would to automatically populate after an issue has been created. How can I combine a string and variable value returned from Jira? Below is what I am have in my Jira.xml. All params are working except the last (
JIRA_URL) . Also, I have the notes tag but it is note creating a note. Below is my jira.xml. Any help would be greatly appreciated.
- <menus>
- <menu name="Create_JIRA_Ticket_DR">
-
- <request>
- <username>xxx</username>
- <password>xxx</password>
- <url>https://xxxx.com/rest/api/2/issue/</url>
- <param>
- <name>project</name>
- <type>projectpicker</type>
- <value>DATAR</value>
- </param>
- <param>
- <name>issuetype</name>
- <type>select</type>
- <value>Task</value>
- </param>
- <param>
- <name>customfield_10100</name>
- <type>textfield</type>
- <value>$REQUESTER</value>
- </param>
- <param>
- <name>summary</name>
- <type>textfield</type>
- <value>$SUBJECT</value>
- </param>
- <param>
- <name>priority</name>
- <type>select</type>
- <value>Minor</value>
- </param>
- <param>
- <name>description</name>
- <type>textarea</type>
- <value>$SHORTDESCRIPTION</value>
- </param>
- <param>
- <name>duedate</name>
- <type>datepicker</type>
- <value>$DUEBYTIME</value>
- </param>
- <!--
- Example to specify custom fields of JIRA.
- -->
- <!--
- <param>
- <name>customfield_10100</name>
- <type>select</type>
- <value>$Mapped_SDP_Field_Value</value>
- </param>
- -->
- </request>
- <success>Ticket created in Jira with key $key And with Id: $id</success>
- <failure>Failed to Integrate to Jira</failure>
- <!--
- param indicates the list of params that need to be updated in
- SDP after the response from the URL is received. The param
- element has two child nodes.
- <name> : Indicates the name of the parameter that needs to be updated
- <value> : Indicates the value that needs to be passed for the parameter
- represented by the name element.This value can be of two types.
- One is Static where the value specified would be passed
- directly. The other is dynamic and should be specified by the
- "$" symbol followed by the key. The key can be any of the
- element name that is available in the jsonobject returned by Jira.
- For example,the return jsonobject from jira is as follows:
- {
- "id":"11300",
- "key":"SDP-73",
- "self":"http://JiraServerName:port/rest/api/2/issue/11300"
- }
- -->
- <response>
- <param>
- <name>JIRA_ISSUE_ID</name>
- <value>$id</value>
- </param>
- <param>
- <name>JIRA_ISSUE_KEY</name>
- <value>$key</value>
- </param>
- <param>
- <name>JIRA_URL</name>
- <value>https://xxxx.com/browse/$key</value>
- </param>
- <!--
- If notes need to be added after the menu invocation, specify the message
- here. Only in case of success, the note will be added.
- -->
- <notes>
- <note>Ticket is created in jira with key : $key And with Id: $id</note>
- </notes>
- </response>
- </menu>
- <menus>
New to ADSelfService Plus?