Page tree
Skip to end of metadata
Go to start of metadata

Insight offers several valuable post-functions.

Any created post function on the create transition should be placed after the actual creation of the issue. So do not put it first in the list, it will not work then.


With the Insight Post Function you'll have the following options:

Change Insight Value into Insight Object 

The selected Object will be added, removed or set to the corresponding attribute of the target Object

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the custom field where objects are selected and to be added/removed/set
Specify the change type
Specify the custom field where objects should be changed

         

Assign Object based on JIRA custom field 

The selected user custom field will be used to find Insight Objects that are associated with that user.    

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the custom field where information (email addresses or JIRA users) can be found
Specify the custom field where objects should be assigned
Insight Object Type Attribute name:Optional object type attribute to filter objects on.

        

Set a JIRA custom field with the attribute value from a selected object 

Select an object attribute value of a selected object and set it to another target custom field. Supported fields are JIRA Text fields, JIRA User FIelds, JIRA Group Fields and Insight custom fields (not reference fields). 

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the Insight custom field from where objects attribute should be fetched.
Specify the name of the Object Type Attribute where to fetch the value/s.
Specify the custom field where object attribute should be stored (reference fields can't be selected).

        

Assign Issue based on attribute in a selected Insight Object 

Select an insight object and specify the attribute where the assignee will be fetched from.

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the Insight custom field from where objects attribute should be fetched.
Specify the name of the Object Type Attribute where to fetch the user from. Any type except "User" or "Default / Email" will be ignored


Email user(s) based on attribute in a selected Insight Object 

Select an insight object and specify the "User" or "Default / Email" attribute to which an email will be sent.     

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the Insight custom field from where objects attribute should be fetched.
Specify the name of the Object Type Attribute where to fetch the user from. Any type except "User" or "Default / Email" will be ignored. 
Specify the email subject. Issue placeholders are supported.
Specify the email message. Issue "place holders" are supported.


Increase or decrease the value of an object attribute

Increase or decrease an object attribute value (of type Integer or Float) by a set amount.

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the Insight custom field from where objects attribute should be fetched.
Specify the name of the Object Type Attribute where to update the value from. Any type exept "Default / Integer" will be ignored. 
Specify the change type, Increase or Decrease
Specify the change value. Anything except a number will be set to default (1) 

      

Set the value of an object attribute with a predefined value 

Selected object(s) will have their specified attribute set to the predetermined value.

NameDescription
ConditionSpecify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the Insight custom field from where objects attribute should be fetched.
Specify the name of the Object Type Attribute where to set the value.  
Change valueSpecify the value to set. Any value not validated to the attribute will be ignored. Issue "place holders" are supported. Leaving this field empty will set an empty value. 


Run a groovy script within this transition

Write a groovy script when you have some specific requirements that the predefined Insight post functions can't handle.  About parameters into the groovy engine, you have all the parameters available as in a normal post function. The most common one is "issue" where you may query as you like. You can read about Insight groovy script examples here.


NameDescription
Enter your groovy code.


  • No labels