Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

When creating a KeyResult - what are the Type values?

JOHN AMES October 23, 2023

We want to automate the creation of Objectives and Key Results. 

I know the Objective needs to be created first, then the KR can be created. 

But I have a couple of questions? 

 

If I create a "Function" level Objective what is the parentType?  Would it not be the same as when creating the Objective?  

What are the values for Type?  Do they correspond directly to the Type field in the UI?   1 - x? 

Depending on the KR type - are different fields required? 

1 answer

1 accepted

0 votes
Answer accepted
Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2023

@JOHN AMES I don't think it is documented anywhere ...as far as I can tell.  I added several Objectives and then used the API to retrieve to see what identifier is used per each type.  I hope this helps.

 

[
{
"name": "Program Feature Finisher",
"type": 1
},
{
"name": "Program Non-Code",
"type": 2
},
{
"name": "Program Incremental Delivery",
"type": 3
},
{
"name": "Program Roadmap Milestone",
"type": 4
},
{
"name": "Portfolio Feature Finisher",
"type": 1
},
{
"name": "Portfolio Non-Code",
"type": 2
},
{
"name": "Portfolio Incremental Delivery",
"type": 3
},
{
"name": "Portfolio Roadmap Milestone",
"type": 4
}
]
JOHN AMES October 25, 2023

So I created an Objective,  with type=1.   Then when trying to create a KeyResult,  I provide the parentId (of the Objective I just created)  and parentType = 1. 

When the script runs it returns invalid parentType ? 

Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2023

For Key Results, the parentType attribute indicates if the Parent is an Objective or a Goal. It sounds like you are creating only Objectives so the parentType value you will use is 44.  If you want to create KeyResults on Goals then the parentType is 31.  I do not know where those values come from.  I hope that helps.

Like JOHN AMES likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events