https://github.com/tools4everbv/helloid-task-sa-target-jira-ticketcreate
Jira - Ticket create
https://github.com/tools4everbv/helloid-task-sa-target-jira-ticketcreate
delegated-form jira powershell product service-automation task
Last synced: about 1 year ago
JSON representation
Jira - Ticket create
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-jira-ticketcreate
- Owner: Tools4everBV
- Created: 2023-11-23T14:55:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T15:47:34.000Z (about 2 years ago)
- Last Synced: 2025-01-08T10:45:42.407Z (about 1 year ago)
- Topics: delegated-form, jira, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```json
{
"project": "ProjectKey",
"summary": "IssueSummary",
"description": "IssueDescription",
"type": "Task"
}
```
> :exclamation: 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](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post)
3. 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.