Q. Is there a way to add a new high level category to the issue type using Field API?
A. Please try:
This method takes a name of category and a name of issue type:
- category_name – string. The name of category (e.g., Punch List, Safety)
- name – string. The name of issue type within the category. (e.g., Observation, Concealment Work to Complete).
If the top level category does not exist, the new category will be created with the given name. Otherwise, the issue type will be added to the existing category.
On success, it will return Status Code “Created”.
Here is the sample response:
“category_name”:”API Punch List”,
“name”:”API Punch List Type”,
“full_name”:”API Punch List::API Punch List Type”
Below is a snapshot of new category created using the create_type method.
Here is a rather straightforward sample code in C# and RestSharp: