This how-to article will help administrators to create a ticket within TeamDynamix from another ticket’s workflow. This is not intended for a Parent/Child relationship but looking at creating a secondary ticket within a workflow. The user must have the Admin or App Admin permissions.
Overview
This article serves as an example of adding a ticket workflow step that will create a child ticket. This could be used to do something like for an offboarding or onboarding an employee. The main tickets covers certain pieces but a child ticket might be needed to assign it to another team or area to work separately.
Learn more about setting up and using web service steps.
Caveats
To create a child ticket, the following conditions must be met:
- The ticket designated as the child is an Incident, Service Request, Major Incident, Problem, or Change.
- Releases cannot be designated as children, as they occupy the highest level in the hierarchy.
- Learn more in our article on ticket classifications.
- The ticket designated as the parent must be of a type that can have child tickets, i.e., a Major Incident, Problem, Change, or Release
- Service Requests and Incidents cannot be set as parents, since these types cannot have child tickets.
- Learn more in our article on ticket classifications.
If the ticket designated as the child isn't eligible to be a child, or if the ticket designated as the parent isn't eligible to be a parent, you will need to either manually change the classification or use a web service step to change the classification. Learn more in our article on creating a web service step to change a ticket classification.
Creating the Web Service Method
To start, follow steps 1-7 of the create a second ticket instructions. Then, when you get to the Create the Web Service Method step, follow the instructions below.
To create a second ticket workflow that will create a child ticket:
- In TDAdmin, click Applications in the left navigation.
- Click the Name of the Ticketing application you want to add this workflow step to.
- Click Workflow Web Services in the left navigation, then click Web Service Methods.
- Click the +New button.
- On the New Web Service page, enter a Name for the method. This name will show up in the workflow builder.
- In the Web Service Provider field, enter the web service provider you've already defined.
- Put the following in the Body:
-
{
"TypeID":[FIXME Ticket Type ID],
"ParentID":{{OrigTicketID}},
"Classification":[FIXME Classification ID],
"Title":"Example ticket title",
"Description":"Created from ticket {{OrigTicketID}}",
"AccountID":[FIXME Acct/Dept ID],
"SourceID":[FIXME Source ID],
"StatusID":[FIXME Status ID],
"PriorityID":[FIXME Status ID],
"RequestorUID":"[FIXME Requestor UID]"
}
Replace each of the “[FIXME”] sections with the appropriate ID.
Ensure that the classification you set is an appropriate child classification for the parent tickets that will use this workflow.
8. Authentication – Select your TeamDynamix web service account.
9. Click the Save button.
Testing the Method
You will need a ticket ID number to use for testing.
To test the new method, in the web service:
- Click the Test Request button.
- In the OrigTicketId column, enter any number
- Click the Send button
- Verify the output
This web service method can now be included in a ticket workflow to create child tickets. Learn more about adding a web service step to a workflow.