User Tools

Site Tools


extensions:itop-stencils

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
extensions:itop-stencils [2018/12/19 11:40]
127.0.0.1 external edit
extensions:itop-stencils [2019/04/23 11:48] (current)
vdumas
Line 4: Line 4:
 description_wiki : Templating based on existing objects. description_wiki : Templating based on existing objects.
 index_hidden ​    : yes index_hidden ​    : yes
-version ​         : 1.0.13 +version ​         : 1.1.2 
-release_dt ​      : ​2017-11-15 +release_dt ​      : ​2019-03-26 
-itop-version-min : 2.0.2 +itop-version-min : 2.6.0
-dependencies_s ​  : none +
-download_url ​    : http://​www.combodo.com/​itop-extensions/​combodo-configurator-for-automatic-object-creation-1.0.13-257.zip+
 code             : combodo-configurator-for-automatic-object-creation code             : combodo-configurator-for-automatic-object-creation
 +state            : stable
 +product_hidden ​  : included
 +alias-code_hidden : Stencils
 alternate-name ​  : Stencils (templating) alternate-name ​  : Stencils (templating)
-alias-code_hidden : Stencils +module-lists_hidden : itop-object-copier/​1.3.2, itop-stencils/​1.0.6 
-module-lists_hidden : itop-object-copier/​1.1.10, itop-stencils/​1.0.6+diffusion ​       : iTop Hub
 ---- ----
- 
  
 <​related_components>​Other versions of this component:</​related_components>​ <​related_components>​Other versions of this component:</​related_components>​
Line 56: Line 56:
 {{ :​extensions:​report.png?​nolink |}} {{ :​extensions:​report.png?​nolink |}}
  
-===== Revision ​History ​===== +===== Revision ​history ​===== 
- Version ​ ^  ​Release ​Date  ​ Comments ​ ^ + 
-|  1.0.13  ​| ​ 2017-11-15 ​ | Fix error displayed in error message or tooltip, about read-only attributes being set. | +Date ^ Version ^ Description ^ 
-|  1.0.12  ​|  2017-09-29 ​ | Showing action in object details only when target class is writable. | + 2019-03-26 ​ |  1.1.2  | - Fix Issue when copying list with object copier \\ - Fix Custom ​Date format in Stencils actions | 
-|  1.0.11  ​|  2017-04-04 ​ | Case logs : when using set on a case log, the entry was set twice, the HTML formatting was lost, and if the log was first copied from the source, it was broken. | + 2019-01-16 ​  1.1.1  | Security hardening | 
-|  1.0.10 ​ ​| ​ 2017-03-27 ​ | With some customizations (preset on ticket dates), the refresh of dependent fields was broken. Regression introduced in iTop 2.3 | +|  2018-12-19  ​|  1.1. | - Support for attachment copy \\ - Fix duplicated links on Ticket creation from CI | 
-|  1.0.9  ​|  2017-03-23 ​ | Fix for XSS vulnerability | +|  2018-06-26 ​ | 1.0.14 | Add copy_head verb for CaseLog attributes, ES translation | 
-|  1.0.8  ​|  2016-08-09 ​ | Fix for compatibility with iTop 2.3.0 (still backward compatible):​ properly handle the breadcrumb + bug fix when using hidden fields and case logs. | +|  2017-11-15 ​ ​| ​ 1.0.13 ​ | Fix error displayed in error message or tooltip, about read-only attributes being set. | 
-|  1.0.7  ​|  2015-10-05 ​ | Fix for compatibility with iTop 2.2.0 (backward compatible) | +|  2017-09-29 ​ ​| ​ 1.0.12 ​ | Showing action in object details only when target class is writable. | 
-|  1.0.6  ​|  2015-09-30 ​ | New verb: nullify. Usefull for leaving a date or datetime undefined (differs from the verb //reset// because the default value for such attributes is "​now"​) | +|  2017-04-04 ​ ​| ​ 1.0.11 ​ | Case logs : when using set on a case log, the entry was set twice, the HTML formatting was lost, and if the log was first copied from the source, it was broken. | 
-|  1.0.5  ​|  2015-07-02 ​ | Transfer data from the triggering object to the copies: copy_from_trigger. New verb for custom actions: call_method. | +|  2017-03-27  ​|  1.0.10 ​ | With some customizations (preset on ticket dates), the refresh of dependent fields was broken. Regression introduced in iTop 2.3 | 
-|  1.0.3  ​|  2015-04-08 ​ | Retrofit data from the copies to the triggering object: retrofit_from_copy | +|  2017-03-23 ​ ​| ​ 1.0.9  | Fix for XSS vulnerability | 
-|  1.0.2  ​|  2015-02-13 ​ | Handle the case of an object created (no lifecycle) | +|  2016-08-09 ​ ​| ​ 1.0.8  | Fix for compatibility with iTop 2.3.0 (still backward compatible):​ properly handle the breadcrumb + bug fix when using hidden fields and case logs. | 
-|  1.0.1  ​|  2015-02-06 ​ | Fixed bug on the reporting: when several rules apply, then only the last report is being displayed | +|  2015-10-05 ​ ​| ​ 1.0.7  | Fix for compatibility with iTop 2.2.0 (backward compatible) | 
-|  1.0.0  ​|  2015-02-03 ​ | First released version |+|  2015-09-30 ​ ​| ​ 1.0.6  | New verb: nullify. Usefull for leaving a date or datetime undefined (differs from the verb //reset// because the default value for such attributes is "​now"​) | 
 +|  2015-07-02 ​ ​| ​ 1.0.5  | Transfer data from the triggering object to the copies: copy_from_trigger. New verb for custom actions: call_method. | 
 +|  2015-04-08 ​ ​| ​ 1.0.3  | Retrofit data from the copies to the triggering object: retrofit_from_copy | 
 +|  2015-02-13 ​ ​| ​ 1.0.2  | Handle the case of an object created (no lifecycle) | 
 +|  2015-02-06 ​ ​| ​ 1.0.1  | Fixed bug on the reporting: when several rules apply, then only the last report is being displayed | 
 +|  2015-02-03 ​ ​| ​ 1.0.0  | First released version |
  
 ===== Installation ===== ===== Installation =====
Line 128: Line 133:
 | apply_stimulus | stimulus code | Applies a stimulus on //​destination//​. Note that this verb does record the object | | apply_stimulus | stimulus code | Applies a stimulus on //​destination//​. Note that this verb does record the object |
 | call_method | function name | **New in 1.0.4** - Calls the provided method on the written object. Its prototype must be "​public function xxxx($oSource)"​. The function can send exceptions in case of failure. In such a case, the error message gets displayed in the log/​error.log file | | call_method | function name | **New in 1.0.4** - Calls the provided method on the written object. Its prototype must be "​public function xxxx($oSource)"​. The function can send exceptions in case of failure. In such a case, the error message gets displayed in the log/​error.log file |
 +| clone_attachments | <​none>​ | **New in 1.1.0** - Copy all the attachments from //source// to //​destination//​ |
  
 <note tip> <note tip>
Line 140: Line 146:
   * $current_date$   * $current_date$
   * $current_time$   * $current_time$
 +
 +__Limitations__
 +  * **Before 1.1.2** with iTop 2.4.0 or above, if you have defined a custom date format for your iTop, the a date attribute is not decoded correctly when using //<​nowiki>​$this->​attcode$</​nowiki>//​ or //<​nowiki>​$trigger->​attcode$</​nowiki>//​​,​ leading to an error ''<​nowiki>​| Error | itop-stencils:​ rule #3 - Action: set(start_date,​$trigger->​start_date$) - Wrong format for date attribute start_date, expecting "Y-m-d H:i:s" and got "​13-12-2018 00:​00:​00"</​nowiki>''​.
 +  * **From 1.1.2 (and iTop from 2.4.0) for Date (or DateTime) attributes only,** the following syntax as to be used: \\
 +    * //<​nowiki>​$this->​​raw(attcode)$</​nowiki>//​ or //<​nowiki>​$trigger->​​raw(attcode)$</​nowiki>//​​
 +
  
 ===== Configuration example ===== ===== Configuration example =====
extensions/itop-stencils.txt · Last modified: 2019/04/23 11:48 by vdumas

";