Skip to content

Tools4everBV/HelloID-Task-SA-Target-Jira-TicketCreate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloID-Task-SA-Target-Jira-TicketCreate

Prerequisites

  • Pre-defined variables: JiraUserName, JiraPassword and JiraBaseUrl created in your HelloID portal.

Description

This code snippet executes the following tasks:

  1. Define a hash table $formObject. The keys of the hash table represent the properties necessary to create 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.

{
    "project": "ProjectKey",
    "summary": "IssueSummary",
    "description": "IssueDescription",
    "type": "Task"
}

❗ 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

  1. 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.