Setting the approver dynamically

I am creating a workflow to verify if a user can create an issue for a specific table. To determine this, we would use the API to check the issue and its related table, and dynamically set an approver to control whether the issue can transition to “In Progress” or not.

I have checked the documentation for creating and updating workflow conditions through JIRA API, but it states that we can access those endpoints only through Forge or Connect.

I’d like to ask this is the correct way to set the approval rules and if there is another way to work aorund this limitation.

Hi @evandrolippert,

That’s correct, the Workflow Transition Rules API is only available within Forge or Connect apps.

The only other alternative is to create a workflow using the Jira Workflows UI (see Configure advanced issue workflows | Atlassian Support) - however I’m not sure if that’d work for your specific use case.

If you’d like to learn more about building a Jira app with Forge, why not check out one of the following resources?

If you have any questions, please let me know.

Cheers!
Mel