This automation rule will delete a roadmap Item on your LaunchNotes account when you create an epic (or whatever issue you'd like to use), in Jira. In order to set this up, you'll need the following information from your LaunchNotes account:
Jira Setup
In Jira, go to Project Settings > Apps > Project automation > Rules > Create rule:
New Trigger: When: Issue deleted
New condition: Issue fields condition
Field: Issue Type
Condition: Equals
Value: Epic
New Condition: Issue fields condition
Field: launchnotes_work_item_id
Condition: Is not empty
New action: Send web request
Web request URL: https://app.launchnotes.io/graphql
Headers:
Authorization: Bearer manage_{TOKEN_ID}
HTTP Method: POST
Web request body: Custom data:
{
"query": "mutation archiveWorkItem ($id: ID!){archiveWorkItem(input: {id: $id}) {workItem {id}}}",
"variables": {
"id": "{{issue.launch_notes_work_item_id}}"
}
}
Example Screenshot: