Skip to main content

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

NameDescription
Input
Project KeySpecifies the project key for which the new issue will be created. String variables containing the project key.
SummarySpecifies the summary or title of the new issue. String variables containing the summary.
DescriptionSpecifies the description of the new issue. String variables containing the description.
Issue Type IDSpecifies the ID corresponding to the type of the issue (e.g., Bug, Task, etc.). String variables containing the issue type ID.
Assignee IDSpecifies the User ID to whom the new issue will be assigned. String variables containing the assignee ID.
AttachmentsSpecifies a list of file paths representing attachments to be added to the new issue. List variables containing file paths.
Misc
Display NameThe display name of the activity. This field supports only strings or String variables.
Optional
DelaySpecifies 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
ResultOutputs 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:

  1. Drag and drop the "Create Issue" activity onto the workflow.
  2. Configure the properties by specifying the project key, summary, description, issue type ID, assignee ID, and attachments (if any).
  3. Optionally, configure the delay.
  4. 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.