You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
@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.
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 ?
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.