Create Issue
AutomatR.Jira.Activities.CreateIssue
The "Create Issue" activity in AutomatR's Jira package utilizes the Jira API to create a new issue. This activity streamlines the process of issue creation, allowing users to dynamically generate new tasks or tickets within Jira as part of their automation workflows.
Properties
Name | Description |
---|---|
Input | |
Project Key | Specifies the project key for which the new issue will be created. String variables containing the project key. |
Summary | Specifies the summary or title of the new issue. String variables containing the summary. |
Description | Specifies the description of the new issue. String variables containing the description. |
Issue Type ID | Specifies the ID corresponding to the type of the issue (e.g., Bug, Task, etc.). String variables containing the issue type ID. |
Assignee ID | Specifies the User ID to whom the new issue will be assigned. String variables containing the assignee ID. |
Attachments | Specifies a list of file paths representing attachments to be added to the new issue. List variables containing file paths. |
Misc | |
Display Name | The display name of the activity. This field supports only strings or String variables. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Create Issue" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs an object representing the response when the issue is created successfully. This object may contain information about the newly created issue. Variables of relevant types (e.g., dynamic variables) to store the response. |
How to use:
- Drag and drop the "Create Issue" activity onto the workflow.
- Configure the properties by specifying the project key, summary, description, issue type ID, assignee ID, and attachments (if any).
- Optionally, configure the delay.
- Execute the workflow to create a new issue in Jira based on the provided parameters.
Example: Consider an example where the "Create Issue" activity is used to create a new task in a project with the project key "PROJ-123," having the summary "Task for Review" and description "This task is created for review purposes." The issue type is set to "Task," and the assignee is "john.doe." An attachment "task_document.txt" is also added to the issue:
Create Issue:
Delay: 2
Project Key: "PROJ-123"
Summary: "Task for Review"
Description: "This task is created for review purposes."
Issue Type ID: "Task"
Assignee ID: "john.doe"
Attachments: ["C:\Attachments\task_document.txt"]
Result: newIssueData
In this example, the activity waits for 2 seconds before executing, creates a new task in the project "PROJ-123" with the specified details, assigns it to "john.doe," attaches the "task_document.txt" file, and stores the response data in the dynamic variable "newIssueData" for further handling in the workflow.