diff --git a/webapps/ui/cockpit/client/scripts/directives/time-to-live.js b/webapps/ui/cockpit/client/scripts/directives/time-to-live.js
index <HASH>..<HASH> 100644
--- a/webapps/ui/cockpit/client/scripts/directives/time-to-live.js
+++ b/webapps/ui/cockpit/client/scripts/directives/time-to-live.js
@@ -41,8 +41,14 @@ module.exports = ['camAPI', '$window' , 'Notifications', function(camAPI, $windo
       };
 
       function updateValue(timeToLive) {
+        var id = (
+          $scope.definition.id ||
+          $scope.definition.processDefinitionId ||
+          $scope.definition.caseDefinitionId ||
+          $scope.definition.decisionDefinitionId
+        );
         return resource.updateHistoryTimeToLive(
-          $scope.definition.id,
+          id,
           {
             historyTimeToLive: timeToLive
           }
feat(time-to-live): update time-to-live to handle different keys for definitionId

Related to CAM-<I>