How to check the workflow's Post-Function & Condition in Bulk

We have some workflow convention's for Post-Function & Conditions to be followed while creating wf. However there are multiple people working on creating the workflow's, so it's quite difficult to QC every single WF's that the conventions been followed or not. Therefore i am looking for some kind of scheduler or script function that will verify or match the convention and show the wf's that does not follow the convention. 

1 answer

1 accepted

0 vote
Gaston Valente Community Champion Jan 03, 2018

Manu,

You can try with an standard unit testing framework using a rest client inside each test.

@Gaston Valente it would be great if you could let me know the process as i am quite new in this. 

Gaston Valente Community Champion Jan 09, 2018

Manu,

This is the way we usually do regression and unit test of jira workflows.

Jira provides a rest api that allows you to execute actions in jira, for example transitions.

When you execute a transition several things get executed:

- Validations

- Conditions

- post functions

You can use the rest api to query the jira instance and validate the execution and desired effect of the logic added to a workflow.

Here you can find the api for transitions:

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-transitions-post

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-transitions-get

You can use a standard unit test framework to automate the execution or use a tool like postman.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 2 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

199 views 3 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you