Examples of Insight Automation Rule Configuration
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
This page is to share examples of Insight Automation rule configuration
Scenario | Example Configuration | Explanation |
---|---|---|
Check for expired license periodically and send email if license expires | WHEN Scheduled event IF "License End Date" < now() AND "License Status" not in ("retired", "expired") THEN Send email Attribute value - set "License Status" to "expired" | Search for "License End Date" that just expired, send an email and update the "License Status" accordingly |
AccountExpires is a Microsoft Active Directory AttributeType and represents the date when a Microsoft Active Directory account expires. For account that never expires, it has a default value of 0 or 0x7FFFFFFFFFFFFFFF (9223372036854775807). If this is mapped with an attribute of type date time, the value will be 12/Apr/62 1:47 AM. We'd like to import only the non-default values. | WHEN Object created IF objectType=Employee AND "Account Expires" < "1919-01-01 00:01" THEN Attribute value - clear the value of "Account Expires" | We can make use of the an automation rule to check if an Employee object type is created and the "Account Expires" is before year 1919, empty the value |
For our documentation on this topic please check:
Or check our Atlassian Community for answers and tips or to post a question.
Was this helpful?