diff --git a/static/images/integrations/jira-plugin/001.png b/static/images/integrations/jira-plugin/001.png new file mode 100644 index 0000000000..5f1e35cb9d Binary files /dev/null and b/static/images/integrations/jira-plugin/001.png differ diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py index ee07c31917..3c482dcdfb 100644 --- a/zerver/lib/integrations.py +++ b/zerver/lib/integrations.py @@ -73,6 +73,7 @@ FIXTURELESS_INTEGRATIONS_WITH_SCREENSHOTS: list[str] = [ "github-actions", "google-calendar", "jenkins", + "jira-plugin", "mastodon", "mercurial", "nagios", @@ -749,10 +750,7 @@ NO_SCREENSHOT_CONFIG = ( "twitter", } # Python API Integrations that do not currently have screenshots in docs - | { - "git", - "jira-plugin", - } + | {"git"} | NO_SCREENSHOT_WEBHOOKS | hubot_integration_names ) diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py index 85cbced370..2825229ca4 100644 --- a/zerver/tests/test_docs.py +++ b/zerver/tests/test_docs.py @@ -417,7 +417,7 @@ class DocPageTest(ZulipTestCase): # for the PythonAPIIntegrations, so we cannot avoid going out of sync # when adding/deleting screenshots. # Use this set to temporarily add exclusions to this test. - exception_images: set[str] = {} + exception_images: set[str] = {"jira-plugin/001.png"} images_in_dir.update(exception_images) images_in_docs.update(exception_images) diff --git a/zerver/webhooks/fixtureless_integrations.py b/zerver/webhooks/fixtureless_integrations.py index 6607f4037f..d1f3459cc5 100644 --- a/zerver/webhooks/fixtureless_integrations.py +++ b/zerver/webhooks/fixtureless_integrations.py @@ -104,6 +104,13 @@ JENKINS = ScreenshotContent( content=f"**Build:** [#{REVISION_NUMBER}](): FAILURE :cross_mark:", ) +JIRA_PLUGIN = ScreenshotContent( + topic=f"{TICKET_NUMBER}: {TASK_TITLE}", + content=f"""{BO_NAME} **created** [{TICKET_NUMBER}]() - priority Medium, assigned to @**{KEVIN_NAME}**: + +> {TASK_DESCRIPTION}""", +) + MASTODON = ScreenshotContent( topic="MIT Technology Review", content=f"""**[Don’t let hype about AI agents get ahead of reality](https://www.technologyreview.com/2025/07/03/1119545/dont-let-hype-about-ai-agents-get-ahead-of-reality/)**