Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize confluence postmortem template #460

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

uptickmetachu
Copy link

@uptickmetachu uptickmetachu commented Feb 14, 2024

Describe your changes

I've added a couple of things to allow a custom jira template be used for postmortems.

integrations:
  confluence:
    postmortem_template_id: 163984

By setting the postmortem_template_id, the template will be fetched and updated in a fashion similar to jinja. Text on the page (including the title) will be replaced if it matches a variable in the context.

class PostmortemContext(TypedDict):
    incident_id: str
    incident_commander: str | None
    severity: str | None
    severity_definition: str | None
    timeline_table_html: str | None
    pinned_messages_html: str | None
    author: str | None
    incident_date: str | None
    postmortem_date: str | None
    roles_html: str | None
    description: str | None
    channel_link: str | None
  • This change also creates the links from slack users -> confluence users within the post mortem.
  • Slack user emails are now fetched and stored in opsdata, this requires a manifest update / app reinstallation to work.

Issue number and link

Closes #419.

Checklist before requesting a review

  • I have properly bumped all version refs by running ./scripts/version-bump.sh v<new> from project root - for example ./scripts/version-bump.sh v1.9.3 (I'll do this after the review)

@echoboomer echoboomer self-requested a review February 24, 2024 23:23
@shj-tu
Copy link

shj-tu commented May 23, 2024

Can you please look at this ?

@valimail-scott
Copy link

This PR needs a rebase and then I will try to find time to test. Sorry for the delays, but I haven't had as much time to work on this project recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Possibility to use my own Confluence template
3 participants