Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Preconditions allow you to execute a post function only under certain circumstances only. This helps you create a more complex behaviour behaviours on your post functions, enabling you Jira to let Jira perform more work for you. In JSU Cloud, preconditions are not separate post functions, but part of the post functions. Now you You select your preconditions on the post function configuration screen.

Check out a very Review the following common use case , and to see how to get started with JSU preconditions for post - functions.


Every organisation employs Most organisations use budget approval issues, which are usually managed manually. You can now With our most popular precondition, you can automate your budget approval issues with the most popular JSU preconditions for post functionsinstead.

In this case, we will use the "Update any issue field" post function to set the component to Budget, ONLY IF:

  • the issue summary contains the word "budget" and;
  • the issue type is "Story".

Let's get started! Check out the Demo demo video or the quick overview below:

...

1. Add the post function and select your precondition.

  • We want our automation to be executed on the "Create" transition, so we select the transition from the diagram view in Jira's workflow configuration and click to add a post function.
  • Then, we choose the "Update Any issue field (JSU)" post function.
  • First, we want to configure our preconditions, so we click on "Add precondition".

...

2. Configure the preconditions.

What we We want our preconditions to do for us is to make sure that only issues with issue type "Story" and a summary containing "budget" text should be targeted for our post function execution. Therefore:

Note: Users have the option to configure the above-mentioned preconditions only by using JQL. In this case, the search query would be: key={issue.key} AND summary~"budget" AND issuetype=Story . Feel free to use the way of configuration , which method that is the simplest for you.

Important! Always make sure you include the query key={issue.key} (or similar) on your JQL condition. This way you ensure that JQL is performed on the current issue. For more details see TOP TIPS.

...

3. Configure the execution

...

. Continue with the execution by configuring our post function to add a component "Budget" to our issues satisfying the preconditions.

...

Image Added

4. Save the configuration

...

and publish our workflow.

Image Removed

45. See it in action!

  • We create an issue with issue type "Story" and call it "Budget for Hardware".
  • When following the link to reload the issue, we can see JSU did update it with the component "Budget".

...

Watch the demo below to follow all the steps to get your preconditions to work for your post functions.

Need more Information information or help? Check out the JSU documentation on preconditions for post functions or Get in touch!

...