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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

When creating a KeyResult - what are the Type values?

JOHN AMES
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Oct 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.
Oct 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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Oct 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.
Oct 25, 2023 • edited

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