Hi, I am trying to add the Dropdownlist "Incident" to the Items listed in Group.
Reason: our section needs to see if for a Group a Incident is filled.
I know "Group" is not a CI but in our System Overview we use this "GOUP" Listing as a general Screen.
I have tried to add
'itop-incident-mgmt-itil/2.7.0',
'itop-tickets/2.4.0',
in the module.groupfield-extension.php
and
<field id="parent_incident_id" xsi:type="AttributeExternalKey" _delta="define">
<filter><![CDATA[SELECT Incident WHERE id != :this->id AND status NOT IN ('resolved','closed')]]></filter>
<sql>parent_incident_id</sql>
<target_class>Incident</target_class>
<is_null_allowed>true</is_null_allowed>
<on_target_delete>DEL_MANUAL</on_target_delete>
</field>
in my extension for GROUP
i am ending up with :
Failed to process class 'Group', from 'C:\inetpub\wwwroot\itsme\datamodels\2.x\itop-config-mgmt': Field: 'parent_incident_ref', (type: AttributeExternalField), missing (or empty) mandatory tag 'extkey_attcode' under the tag 'field'
Is the a way to display the Incident Dropdownfield in the Grouplist ??
For the specific AttributeExternalField error: you don't have this tag
_delta="define"
Generally speaking, I'd also recommend to follow Combodo conventions (English field names, this is purely internal and not visible to the user anyway; using typically a-z characters, underscores and digits, avoiding spaces).
👍
1
Last edit: Jeffrey Bostoen 2022-06-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Jeffrey,
i have also tried without _delta="define"
same error.
True what you are saying about naming convention but for my testing it is sometimes easier to do it in native language. I will clean up always after it works ;-)
Do you have any solution for my problem ?
It seems like that the fields out of the parent "Ticket" is not availible even
'itop-incident-mgmt-itil/2.7.0',
'itop-tickets/2.4.0',
in the module.groupfield-extension.php
Thx
Wolfgang
Last edit: Wolle Petry 2022-06-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
iTopVersion: 2.7.5-1
iTopBuild: 7770
iTopBuildDate: 2021-07-12 19:29:29
DataModelVersion: 2.7.5
MySQLVersion: 10.6.4-MariaDB
PHPVersion: 7.3.31
OSVersion: WINNT
WebServerVersion: Microsoft-IIS/10.0
Hi, I am trying to add the Dropdownlist "Incident" to the Items listed in Group.
Reason: our section needs to see if for a Group a Incident is filled.
I know "Group" is not a CI but in our System Overview we use this "GOUP" Listing as a general Screen.
I have tried to add
'itop-incident-mgmt-itil/2.7.0',
'itop-tickets/2.4.0',
in the module.groupfield-extension.php
and
<field id="parent_incident_id" xsi:type="AttributeExternalKey" _delta="define">
<filter><![CDATA[SELECT Incident WHERE id != :this->id AND status NOT IN ('resolved','closed')]]></filter>
<sql>parent_incident_id</sql>
<target_class>Incident</target_class>
<is_null_allowed>true</is_null_allowed>
<on_target_delete>DEL_MANUAL</on_target_delete>
</field>
in my extension for GROUP
i am ending up with :
Failed to process class 'Group', from 'C:\inetpub\wwwroot\itsme\datamodels\2.x\itop-config-mgmt': Field: 'parent_incident_ref', (type: AttributeExternalField), missing (or empty) mandatory tag 'extkey_attcode' under the tag 'field'
Is the a way to display the Incident Dropdownfield in the Grouplist ??
Thx in advance
Wolfgang
PS: files in attachment
For the specific AttributeExternalField error: you don't have this tag
Generally speaking, I'd also recommend to follow Combodo conventions (English field names, this is purely internal and not visible to the user anyway; using typically a-z characters, underscores and digits, avoiding spaces).
Last edit: Jeffrey Bostoen 2022-06-15
Hi Jeffrey,
i have also tried without _delta="define"
same error.
True what you are saying about naming convention but for my testing it is sometimes easier to do it in native language. I will clean up always after it works ;-)
Do you have any solution for my problem ?
It seems like that the fields out of the parent "Ticket" is not availible even
'itop-incident-mgmt-itil/2.7.0',
'itop-tickets/2.4.0',
in the module.groupfield-extension.php
Thx
Wolfgang
Last edit: Wolle Petry 2022-06-15
shouldnt it be possible to use a querry for type "AttributeEnum" and have the values out of the query ?
Hello,
Not sure to understand what you want to do ? Can you explain some functional use cases ?