Skip to content

feat: add jira on issue trigger#4887

Draft
WashingtonKK wants to merge 4 commits into
superplanehq:mainfrom
WashingtonKK:feat/jira-on-issue
Draft

feat: add jira on issue trigger#4887
WashingtonKK wants to merge 4 commits into
superplanehq:mainfrom
WashingtonKK:feat/jira-on-issue

Conversation

@WashingtonKK

Copy link
Copy Markdown
Collaborator

Related to:#4755

What changed

  • Added the jira on.Issue trigger
  • Changed the auth method for jira to Oauth 3LO

Why

This adds the jira on.Issue trigger to jira. Webhook management via API requires oauth clients only so this also changes the auth method to oauth.

How

Demo Video

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@superplanehq-integration

Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>

# Conflicts:
#	docs/components/Jira.mdx
#	pkg/integrations/jira/client.go
#	pkg/integrations/jira/client_test.go
#	pkg/integrations/jira/common.go
#	pkg/integrations/jira/example.go
#	pkg/integrations/jira/jira.go
#	pkg/integrations/jira/jira_test.go
#	web_src/src/pages/workflowv2/mappers/jira/index.ts
Resolves two conflicts from main's pages/workflowv2 -> pages/app move
(a8f7f13) and its new Jira heartbeat components:
- web_src/.../jira/index.ts (content): keep both this branch's onIssue
  trigger import/registration and main's heartbeat mapper imports.
- web_src/.../jira/on_issue.ts (file location): relocated under
  pages/app/mappers/jira/.
The auto-merged Jira backend (jira.go/common.go/client.go/example.go)
builds and its tests pass; the full server binary compiles.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Resolves additive content conflicts in pkg/integrations/jira/client.go and
client_test.go: this branch appends webhook support (Create/Delete/List/
Refresh webhook plus the OAuth client test helper) while main appends the
JSM Ops-alert client and tests at the same end-of-file location. Keeps both
sides, closing this branch's trailing function before main's block. The
rest of the Jira package (common.go, jira.go, example.go, list_resources.go)
and the Jira mapper index auto-merged; package builds, vets, and tests pass.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
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.

1 participant