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.

For the case when one Post Function depends on the result of another in the same transition, please see section: Dependent post functions in the same transition

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

名前説明
条件Specify 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.
変更タイプを指定します。
オブジェクトを変更する必要があるカスタム フィールドを指定します。

         

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.    

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
情報 (メール アドレスまたは Jira ユーザー) を検索できるカスタム フィールドを指定します。
オブジェクトを割り当てるカスタム フィールドを指定します。
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). 

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
オブジェクト属性の取得元となる Insight カスタム フィールドを指定します。
Specify the name of the Object Type Attribute where to fetch the value/s.
オブジェクト属性を保存する必要があるカスタム フィールドを指定します (参照フィールドは選択不可)。

        

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.

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
オブジェクト属性の取得元となる Insight カスタム フィールドを指定します。
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.     

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
オブジェクト属性の取得元となる Insight カスタム フィールドを指定します。
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 message. Issue "placeholders" are supported.


Increase or decrease the value of an object attribute

オブジェクト属性値 (整数型) を設定した量だけ増減します。

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
オブジェクト属性の取得元となる Insight カスタム フィールドを指定します。
Specify the name of the Object Type Attribute where to update the value from. Any type except "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.

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
オブジェクト属性の取得元となる Insight カスタム フィールドを指定します。
Specify the name of the Object Type Attribute where to set the value.  
変更値Specify 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. 


このトランジション内で Groovy スクリプトを実行する

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.


名前説明
Enter your groovy code.


Create an Insight Object from a Jira Issue

Select an Insight Object schema, Object type and configure the attributes to be populated from a Jira Issue.

For example configuration, please see: Create an Insight Object from a Jira Issue

(warning) The value of the Issue field mapped to an Object attribute must be data format compatible, otherwise Insight will not be able to create a new object. Example of a mapping that will fail: A Jira URL picker mapped to Object attribute of type Integer


名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Assign to IssueThe newly created object is not automatically linked to the issue. To assign it to the issue, select the custom field on the issue to contain the reference. 
常に作成If checked, then Insight will create the object even if mandatory object attributes have not been mapped correctly.
Object Schema:目的のオブジェクト タイプを含むオブジェクト スキーマを指定します。
Object type:作成するオブジェクトのタイプに対応するオブジェクト タイプを指定します。
/ :オブジェクト タイプを選択すると、属性のリストが表示されて課題フィールドに対してマッピングできるようになります。

Supported Jira Issue fields

フィールドJira のタイプオブジェクト タイプ属性のタイプExpected Object type attribute value
影響を受けるバージョンバージョン
  • バージョン
  • 数値
  • その他
  • Jira バージョン
  • バージョン ID
  • Jira バージョン名
担当者ユーザー
  • ユーザー
  • メール
  • その他
  • Jira ユーザー
  • Jira ユーザー メール
  • Jira ユーザー表示名
説明 Text
  • Textarea
  • その他
  • Wiki 形式の説明
  • 説明
期限日付
  • 日付
  • 日時
  • その他
  • 日付
  • 日時
  • 日付のシステム/ユーザー ロケール形式
修正バージョンバージョン
  • バージョン
  • 数値
  • その他
  • Jira バージョン
  • Jira バージョン ID
  • Jira バージョン名
課題タイプ課題タイプ
  • 数値
  • その他
  • 課題タイプ ID
  • 課題タイプ名
キー (課題)Text
  • すべて
  • 課題キー
ラベルラベル
  • すべて
  • ラベルの値
PriorityPriority
  • 数値
  • その他
  • priorityId
  • 優先度名
プロジェクトプロジェクト
  • プロジェクト
  • 数値
  • その他
  • Jira プロジェクト
  • Jira プロジェクト ID
  • Jira プロジェクト名
報告者ユーザー
  • ユーザー
  • メール
  • その他
  • Jira ユーザー
  • Jira ユーザー メール
  • Jira ユーザー表示名
ソリューションソリューション
  • 日付
  • 日時
  • その他
  • 解決日
  • 解決日時
  • 解決名
解決済み日付
  • 日付
  • 日時
  • その他
  • 日付
  • 日時
  • 日付のシステム/ユーザー ロケール形式
ステータス (課題)ステータス
  • すべて
  • ステータス名
要約Text
  • すべて
  • 要約
customfield_xxxxx未定義
  • すべて
カスタム フィールドの値。

Make sure that when using custom fields that the custom field value is possible to set to the target attribute. If not it will be discarded.


課題からのデータに基づいて、IQL クエリからオブジェクトを割り当てます。

Assign objects to custom fields depending on an configured IQL query. Any issue value is available as place holders. Use the common field definitions for Jira fields. The IQL query will run upon the schema which the Insight custom field belongs.

名前説明
条件Specify the groovy code to use as condition for this post function to execute. Condition ignored on empty value.
Specify the IQL to filter the objects to set on the specified custom field in next configuration. The IQL supports placeholders from any Issue Field.
Specify the Insight custom field that the filtered objects should be attached. (Referenced Insight Customfields are not supported)