{"key":"bauer.bpmn.workflow.flowers","name":"Flower","description":"Flower - BPMN Automation for Jira","vendor":{"name":"Flower","url":"http://flower-bpm.com"},"enableLicensing":true,"baseUrl":"https://dev-jira.flower-bpm.com","links":{"self":"https://dev-jira.flower-bpm.com/atlassian-connect.json","homepage":"https://dev-jira.flower-bpm.com/atlassian-connect.json"},"authentication":{"type":"jwt"},"lifecycle":{"installed":"/installed","dare-migration":"/dare"},"apiMigrations":{"context-qsh":true,"signed-install":true},"dataResidency":{"maxMigrationDurationHours":0.5,"realmPersistenceDays":10},"regionBaseUrls":{"US":"https://us.engine.flower-bpm.com","EU":"https://eu.engine.flower-bpm.com","AU":"https://au.engine.flower-bpm.com","DE":"https://de.engine.flower-bpm.com","SG":"https://sg.engine.flower-bpm.com","CA":"https://ca.engine.flower-bpm.com","IN":"https://in.engine.flower-bpm.com","KR":"https://kr.engine.flower-bpm.com","JP":"https://jp.engine.flower-bpm.com","GB":"https://gb.engine.flower-bpm.com","CH":"https://ch.engine.flower-bpm.com"},"scopes":["READ","WRITE","DELETE","PROJECT_ADMIN","ADMIN","ACCESS_EMAIL_ADDRESSES"],"modules":{"jiraIssueContents":[{"icon":{"width":24,"height":24,"url":"/img/flower-red.svg"},"target":{"type":"web_panel","url":"/panel-left"},"tooltip":{"value":"Flower - Model"},"name":{"value":"Flower - Model"},"key":"flower-jic-model","contentPresentConditions":[{"condition":"entity_property_exists","params":{"entity":"issue","propertyKey":"flower"}}],"conditions":[{"condition":"entity_property_equal_to","params":{"entity":"issue","propertyKey":"flower","value":"Model","objectName":"type"}}]},{"icon":{"width":24,"height":24,"url":"/img/flower-blue.svg"},"target":{"type":"web_panel","url":"/panel-left"},"tooltip":{"value":"Flower - Activity"},"name":{"value":"Flower - Activity"},"key":"flower-jic-activity","contentPresentConditions":[{"condition":"entity_property_exists","params":{"entity":"issue","propertyKey":"flower"}}],"conditions":[{"condition":"entity_property_equal_to","params":{"entity":"issue","propertyKey":"flower","value":"Activity","objectName":"type"}}]},{"icon":{"width":24,"height":24,"url":"/img/flower-green.svg"},"target":{"type":"web_panel","url":"/panel-left"},"tooltip":{"value":"Flower - Process Instance"},"name":{"value":"Flower - Process Instance"},"key":"flower-jic-pi","contentPresentConditions":[{"condition":"entity_property_exists","params":{"entity":"issue","propertyKey":"flower"}}],"conditions":[{"condition":"entity_property_equal_to","params":{"entity":"issue","propertyKey":"flower","value":"\"Process Instance\"","objectName":"type"}}]}],"postInstallPage":{"url":"/repository","name":{"value":"Flower Post-Install Page","i18n":"flower.postinstallpage.name"},"key":"flower-post-install-page"},"configurePage":{"url":"/settings","name":{"value":"Flower Settings","i18n":"flower.settingspage.name"},"key":"flower-settings","conditions":[{"condition":"user_is_admin"}]},"dialogs":[{"url":"/bpmn-view","cacheable":false,"options":{"size":"fullscreen","header":{"value":"Flower - BPM for Jira"}},"key":"flower-bpmn-view"}],"generalPages":[{"key":"flower-main-page-jira","location":"system.top.navigation.bar","cacheable":false,"name":{"value":"Flower - BPM for Jira"},"url":"/repository","conditions":[{"condition":"user_is_logged_in"}],"icon":{"width":80,"height":80,"url":"data:image/svg+xml;base64,PHN2ZyBpZD0iRmxvd2Vyc19Mb2dvIiBkYXRhLW5hbWU9IkZsb3dlcnMgTG9nbyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzAgMzAiPgogIDx0aXRsZT4xOTA3MDNfZmxvd2Vyc19pY29uX3NtYWxsXzAxPC90aXRsZT4KICA8cGF0aCBkPSJNMjksMTVhMy41LDMuNSwwLDAsMC0zLjUtMy41SDIzLjRsMS41LTEuNGEzLjUsMy41LDAsMCwwLTUtNUwxOC41LDYuNlY0LjRBMy40LDMuNCwwLDAsMCwxNS4xLDFoLS4yYTMuNCwzLjQsMCwwLDAtMy40LDMuNFY2LjZMMTAuMSw1LjFhMy41LDMuNSwwLDAsMC01LDVsMS41LDEuNEg0LjVhMy41LDMuNSwwLDAsMCwwLDdINi42TDUuMSwxOS45YTMuNSwzLjUsMCwwLDAsNSw1bDEuNC0xLjV2Mi4yQTMuNCwzLjQsMCwwLDAsMTQuOSwyOWguMmEzLjQsMy40LDAsMCwwLDMuNC0zLjRWMjMuNGwxLjQsMS41YTMuNSwzLjUsMCwwLDAsNS01bC0xLjUtMS40aDIuMUEzLjUsMy41LDAsMCwwLDI5LDE1Wk0xNSwyMS40QTYuNCw2LjQsMCwxLDEsMjEuNCwxNSw2LjQsNi40LDAsMCwxLDE1LDIxLjRaIiBmaWxsPSIjY2QxMjRhIi8+Cjwvc3ZnPgo="}}],"webPanels":[{"url":"/panel-left","location":"atl.jira.view.issue.left.context","layout":{"width":"600px","height":"100%"},"cacheable":false,"weight":200,"name":{"value":"Flower - BPM for Jira"},"key":"flower-web-panel-left","contentPresentConditions":[{"condition":"entity_property_exists","params":{"entity":"issue","propertyKey":"flower"}}],"conditions":[{"condition":"entity_property_exists","params":{"entity":"issue","propertyKey":"flower"}}]}],"webhooks":[{"event":"jira_expression_evaluation_failed","url":"/jira-expressions-monitoring"},{"event":"connect_addon_disabled","url":"/connect_addon_disabled"},{"event":"connect_addon_enabled","url":"/connect_addon_enabled"},{"event":"jira:issue_created","jqlFilter":"","url":"/webhook-issue-created","propertyKeys":["flower","instanceMapping"]},{"event":"jira:issue_updated","jqlFilter":"flowerType in ('Activity', 'Process Instance', 'Model') AND flowerCompleted is EMPTY AND (resolution is not EMPTY OR  assignee changed)","url":"/webhook-issue-updated","propertyKeys":["flower","flowerModify","flowerVersion","flowerLanes"]}],"jiraEntityProperties":[{"key":"flower-properties","name":{"value":"Flower Properties","i18n":"flower.properties"},"entityType":"issue","keyConfigurations":[{"propertyKey":"flower","extractions":[{"objectName":"type","type":"string","alias":"flowerType"},{"objectName":"version","type":"string","alias":"flowerVersion"},{"objectName":"model","type":"string","alias":"flowerModel"},{"objectName":"instance","type":"string","alias":"flowerInstance"},{"objectName":"timer","type":"date","alias":"flowerTimer"},{"objectName":"parentActivity","type":"string","alias":"flowerActivity"},{"objectName":"node","type":"string","alias":"flowerNode"},{"objectName":"lane","type":"string","alias":"flowerLane"},{"objectName":"next","type":"string","alias":"flowerNext"},{"objectName":"previous","type":"string","alias":"flowerPrevious"},{"objectName":"parent","type":"string","alias":"flowerParent"},{"objectName":"migration","type":"string","alias":"flowerMigration"}]}]}],"jiraWorkflowValidators":[{"description":{"value":"Flower: Allows the transition to be taken only if all linked issue are resolved."},"expression":"let pi = new Issue(issue.properties.flower.instance);\n  let previousNodes = issue.properties.flower.previous||[];\n  let previouslinks = pi.links.slice(0, 1000).filter(l => l.linkedIssue.status.category.colorName != 'green').filter(l => previousNodes.includes(l.linkedIssue.properties.flower.node));\n  previouslinks.length <= 0","errorMessage":{"expression":"'Related Flower issues must be resolved first: \n' + new Issue(issue.properties.flower.instance).links.slice(0, 1000).filter(l => l.linkedIssue.status.category.colorName != 'green').filter(l => (issue.properties.flower.previous||[]).includes(l.linkedIssue.properties.flower.node)).map(l => l.linkedIssue.key).join('\n')\n"},"view":{"url":"/workflow-conditions/view?id={condition.id}&config={condition.config}&type=validator"},"edit":{"url":"/workflow-conditions/view?id={condition.id}&config={condition.config}&type=validator"},"create":{"url":"/workflow-conditions/view?id={condition.id}&config={condition.config}&type=validator"},"name":{"value":"Flower: Related issues must be resolved first."},"key":"flower-workflow-validator-blocking-issues"}],"jiraWorkflowConditions":[{"key":"flower-workflow-condition-blocking-issues","name":{"value":"Flower: Related issues must be resolved first"},"description":{"value":"Flower: Shows the transition only if all linked issue are resolved"},"expression":"let pi = new Issue(issue.properties.flower.instance);\n  let previousNodes = issue.properties.flower.previous||[];\n  let previouslinks = pi.links.slice(0, 1000).filter(l => l.linkedIssue.status.category.colorName != 'green').filter(l => previousNodes.includes(l.linkedIssue.properties.flower.node));\n  previouslinks.length <= 0","view":{"url":"/workflow-conditions/view?id={condition.id}&config={condition.config}&type=condition"},"edit":{"url":"/workflow-conditions/edit?id={condition.id}&config={condition.config}&type=condition"},"create":{"url":"/workflow-conditions/create?id={condition.id}&config={condition.config}&type=condition"}}]}}