- Pre-defined variables:
JiraUserName
,JiraPassword
andJiraBaseUrl
created in your HelloID portal.
This code snippet executes the following tasks:
- Define a hash table
$formObject
. The keys of the hash table represent the properties necessary to update an issue while the values represent the values entered in the form.
To view an example of the form output, please refer to the JSON code pasted below.
{
"ticketId": "1",
"transitionId": "1",
}
❗ It is important to note that the names of your form fields might differ. Ensure that the
$formObject
hashtable is appropriately adjusted to match your form fields. See the Jira API documentation
- Create a new ticket using the:
Invoke-RestMethod
cmdlet. The hash table called:$formObject
is passed to the body of the:Invoke-RestMethod
cmdlet as a JSON object.
To retrieve the transitionId, see the Jira API documentation