{"cloud":true,"rules":[{"id":2793380,"clientKey":"d938d60f-6f1a-38fa-b0cc-68cfc2a01a24","name":"[CS] Initial Ticket Setup","state":"ENABLED","description":"Wenn ein Ticket erstellt wird, werden Assetfelder und Security-Level gesetzt.","authorAccountId":"5c094a465e2eee35d79f8e39","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1760435373695,"updated":1760523588979,"trigger":{"id":"58253c67-e61c-4061-b6dc-27e922e2eb3f","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:created","value":{"eventKey":"jira:issue_created","issueEvent":"issue_created","eventFilters":["ari:cloud:jira:4c80f24d-3b7c-4757-95bb-1040fe2a9fe0:project/10065"]},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"cc43b18f-2a64-44ee-8fa8-f6d2b83f2b0a","component":"CONDITION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.jql.condition","value":"project = CSD","children":[],"conditions":[],"connectionId":null},{"id":"ad474dd0-343c-42ae-a058-a1a5b4f54d6a","component":"CONDITION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.condition.container.block","value":null,"children":[{"id":"2933cbaf-2e38-4511-8340-875682106bf1","component":"CONDITION_BLOCK","parentId":"ad474dd0-343c-42ae-a058-a1a5b4f54d6a","conditionParentId":null,"schemaVersion":1,"type":"jira.condition.if.block","value":{"conditionMatchType":"ALL"},"children":[{"id":"d7400fca-c5e7-4964-ab6c-28cce74e3c97","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Start Customer issue creation ({{creator.displayName}})","children":[],"conditions":[],"connectionId":null},{"id":"5fd5e241-ecff-4ff1-8347-5b244c4efe72","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":1,"type":"cmdb.lookup.objects","value":{"workspaceId":"db32e8e0-b481-4e24-9c40-ac7423593e9d","schemaId":"5","customSmartValue":{"id":"_customsmartvalue_id_1750156183968","name":{"type":"FREE","value":"lookupObjects"},"type":"IQL","query":{"type":"SMART","value":"objectType = \"SupportUser\" AND \"E-Mail\" = \"{{creator.emailAddress}}\""},"lazy":false}},"children":[],"conditions":[],"connectionId":null},{"id":"e178bdad-708d-451d-80d9-8718d45db8a9","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"SupportUser"},"fieldType":"com.atlassian.jira.plugins.cmdb:cmdb-object-cftype","type":"SET","value":"objectType = SupportUser AND Key = {{lookupObjects.get(0).Key}}"}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"90c50426-48cc-4452-a4b1-ca50f1788081","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Request participants"},"fieldType":"com.atlassian.servicedesk:sd-request-participants","type":"SET","value":[{"type":"SMART","value":"{{creator.emailAddress}}"}]}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"e815eb82-78fa-4370-ab61-b6a8cf530798","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":1,"type":"cmdb.lookup.objects","value":{"workspaceId":"db32e8e0-b481-4e24-9c40-ac7423593e9d","schemaId":"5","customSmartValue":{"id":"_customsmartvalue_id_1750166808133","name":{"type":"FREE","value":"lookupObjects"},"type":"IQL","query":{"type":"SMART","value":"object HAVING inboundReferences(Key = {{lookupObjects.get(0).Key}})"},"lazy":false}},"children":[],"conditions":[],"connectionId":null},{"id":"81268914-bfb8-4ea4-bd5d-6864a6ec5aa9","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Kunde"},"fieldType":"com.atlassian.jira.plugins.cmdb:cmdb-object-cftype","type":"SET","value":"objectType = Kunde AND Key = {{lookupObjects.get(0).Key}}"}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"afc9f794-fe22-474e-aeb0-5f2bca5840d8","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":1,"type":"cmdb.lookup.objects","value":{"workspaceId":"db32e8e0-b481-4e24-9c40-ac7423593e9d","schemaId":"5","customSmartValue":{"id":"_customsmartvalue_id_1750167219164","name":{"type":"FREE","value":"lookupObjects"},"type":"IQL","query":{"type":"SMART","value":"object HAVING inboundReferences(Key = {{lookupObjects.get(0).Key}})"},"lazy":false}},"children":[],"conditions":[],"connectionId":null},{"id":"897cb9de-3ed3-4d1a-a3c2-b28dd09c1abe","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Partner"},"fieldType":"com.atlassian.jira.plugins.cmdb:cmdb-object-cftype","type":"SET","value":"objectType = Partner AND Key = {{lookupObjects.get(0).Key}}"}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"8557bbb4-784b-493c-b54e-87424e943e8c","component":"ACTION","parentId":"2933cbaf-2e38-4511-8340-875682106bf1","conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Ende Ticketerstellung durch Customer","children":[],"conditions":[],"connectionId":null}],"conditions":[{"id":"e93a0d96-256d-4939-90f0-2975391b87a2","component":"CONDITION","parentId":null,"conditionParentId":"2933cbaf-2e38-4511-8340-875682106bf1","schemaVersion":6,"type":"jira.user.condition","value":{"conditions":[{"field":"reporter","check":"IS_CUSTOMER","criteria":[]},{"field":"reporter","check":"NOT_IN_ROLE","criteria":[{"type":"NAME","value":"Partner"}]},{"field":"reporter","check":"NOT_IN_ROLE","criteria":[{"type":"NAME","value":"Service Desk Team"}]}],"operator":"AND"},"children":[],"conditions":[],"connectionId":null}],"connectionId":null},{"id":"26f65274-32ae-49da-99e9-2719a9fd828b","component":"CONDITION_BLOCK","parentId":"ad474dd0-343c-42ae-a058-a1a5b4f54d6a","conditionParentId":null,"schemaVersion":1,"type":"jira.condition.if.block","value":{"conditionMatchType":"ANY"},"children":[{"id":"27fead8d-2dc1-41d2-92be-826de08bebfa","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Setze Partner","children":[],"conditions":[],"connectionId":null},{"id":"2afa431e-51e9-4757-8479-7ac4107f08d3","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":1,"type":"jira.issue.refresh.issue","value":{"delayMs":null},"children":[],"conditions":[],"connectionId":null},{"id":"7f25114d-de00-4459-b8d5-3eb1e00c840e","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":1,"type":"cmdb.lookup.objects","value":{"workspaceId":"db32e8e0-b481-4e24-9c40-ac7423593e9d","schemaId":"5","customSmartValue":{"id":"_customsmartvalue_id_1750170768955","name":{"type":"FREE","value":"lookupObjects"},"type":"IQL","query":{"type":"SMART","value":"object HAVING inboundReferences(objectType = Kunde AND Name = \"{{issue.customfield_10210.label}}\")"},"lazy":false}},"children":[],"conditions":[],"connectionId":null},{"id":"99bd2278-af7a-4906-bb63-ff43bdead8e0","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Partner"},"fieldType":"com.atlassian.jira.plugins.cmdb:cmdb-object-cftype","type":"SET","value":"objectType = Partner AND Key = {{lookupObjects.get(0).Key}}"}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"f55d837e-d78e-4b07-9498-ac3d005a73f1","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":1,"type":"cmdb.lookup.objects","value":{"workspaceId":"db32e8e0-b481-4e24-9c40-ac7423593e9d","schemaId":"5","customSmartValue":{"id":"_customsmartvalue_id_1760449850745","name":{"type":"FREE","value":"lookupObjects"},"type":"IQL","query":{"type":"SMART","value":"objecttype = SupportUser AND Nachname = \"{{issue.customfield_10209.label}}\""},"lazy":false}},"children":[],"conditions":[],"connectionId":null},{"id":"0dfaf99c-2022-47fa-af92-7e9cdbccb5bb","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Request participants"},"fieldType":"com.atlassian.servicedesk:sd-request-participants","type":"SET","value":[{"type":"SMART","value":"{{lookupObjects.get(0).E-Mail}}"}]}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"0e943ede-8f7a-4fce-b068-a99245245355","component":"ACTION","parentId":"26f65274-32ae-49da-99e9-2719a9fd828b","conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Ende Partner setzen --- mail: {{lookupObjects.get(0).E-Mail}}","children":[],"conditions":[],"connectionId":null}],"conditions":[{"id":"dd95ce3e-61fa-472c-b3c6-891835f0111b","component":"CONDITION","parentId":null,"conditionParentId":"26f65274-32ae-49da-99e9-2719a9fd828b","schemaVersion":6,"type":"jira.user.condition","value":{"conditions":[{"field":"reporter","check":"IN_ROLE","criteria":[{"type":"NAME","value":"Service Desk Team"}]},{"field":"reporter","check":"IN_ROLE","criteria":[{"type":"NAME","value":"Partner"}]}],"operator":"OR"},"children":[],"conditions":[],"connectionId":null}],"connectionId":null}],"conditions":[],"connectionId":null},{"id":"db5cacaf-d492-4dfd-8f61-dc47f0e80524","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.refresh.issue","value":{"delayMs":null},"children":[],"conditions":[],"connectionId":null},{"id":"549b3ba3-2a06-4aaf-8ed1-1daf7ce796d3","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Setze Security - Level für Partner {{customfield_10211.label}}","children":[],"conditions":[],"connectionId":null},{"id":"f695c390-8608-489b-8095-af23b56adf3e","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.create.variable","value":{"id":"_customsmartvalue_id_1760523087377","name":{"type":"FREE","value":"pName"},"type":"SMART","query":{"type":"SMART","value":"{{customfield_10211.label}}"},"lazy":false},"children":[],"conditions":[],"connectionId":null},{"id":"17daa670-e8b9-42a4-8ca1-49369aa6e4e4","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.create.mapping-variable","value":{"name":{"type":"FREE","value":"seclevel"},"mappings":[{"key":"Bleckmann","value":"PRTNBLECK"},{"key":"CP Artis","value":"PRTNCP"},{"key":"G & N","value":"PRTNGN"},{"key":"Hahn","value":"PRTNHAHN"},{"key":"Hamann","value":"PRTNHAMN"},{"key":"Hold & Spada","value":"PRTNHS"},{"key":"hup-si","value":"PRTNHUP"},{"key":"ITSM","value":"PRTNITSM"},{"key":"Minerva","value":"PRTNPDS"},{"key":"Novis","value":"PRTNPDS"}]},"children":[],"conditions":[],"connectionId":null},{"id":"a87237fd-c94e-4950-a8e3-0afcc4f2fb28","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"Var = {{pName}} -- Sec = {{seclevel.get(pName)}}","children":[],"conditions":[],"connectionId":null},{"id":"bca78314-b7b4-4fb8-8de7-848b6545aa98","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":12,"type":"jira.issue.edit","value":{"operations":[],"advancedFields":"{\n \"fields\": {\n \"security\": {\n \"name\": \"{{seclevel.get(pName)}}\"\n }\n }\n}","sendNotifications":false},"children":[],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[],"labels":[],"tags":[{"id":4228798,"ruleIdUuid":"0199e220-0680-7938-a23f-4151fcc9b87e","tagType":"IS_RULE_UPDATED","tagValue":"true"}],"ruleScope":{"resources":["ari:cloud:jira:4c80f24d-3b7c-4757-95bb-1040fe2a9fe0:project/10065"]},"ruleHome":{"ruleLifecycleHome":{"locationARI":"ari:cloud:jira:4c80f24d-3b7c-4757-95bb-1040fe2a9fe0:project/10065"},"ruleBillingHome":{"locationARI":"ari:cloud:jira-servicedesk::site/4c80f24d-3b7c-4757-95bb-1040fe2a9fe0"}},"writeAccessType":"UNRESTRICTED","collaborators":[],"billingType":"NORMAL","idUuid":"0199e220-0680-7938-a23f-4151fcc9b87e","partitionId":"87112ee8-86e1-4253-bebc-1d4f37c0fb22","currentVersionId":null}]}