Hi all!
We’re migrating our Jira app to Forge. Can we integrate Slack to send notifications on specific app events? If yes, what’s the recommended Forge approach?
In Forge, listen for the Jira events you care about; for example, issue_created and workflow transitions. Use that handler to call Slack via an incoming webhook or bot at chat.postMessage. Store the Slack credentials as environment variables in Forge, and send a formatted message from your function whenever your conditions are met-no extra server needed.
However, Slack incoming webhooks are treated as an external resource in the manifest, and using external resources prevents us from migrating the app to Forge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Oksanа That's right, if you want to make an external call via fetch within Forge that would need to be defined in the manifest as an external resource - but I'm confused as this shouldn't prevent you from creating a Forge app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mel Paisley We’ve already migrated our Slack notifications to Forge, but since Slack requires external egress permissions in the manifest, the app becomes ineligible for the Runs on Atlassian (RoA) badge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's right, so you can still build a Forge app but it would not qualify for RoA as it is egressing data to an external service outside Atlassian (in this case, Slack). RoA is not a requirement for building a Forge app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.