Skip to content

Constraint for a mandatory longtext field will not be created #10

@paul-bowden

Description

@paul-bowden

The constraint of a type sets a lontext field mandatory on specific states.

The result of TIF workbench, when the solution has been read, sets the informational text as "value"

<constraint type="fieldRelationship">
  <source name="State">
    <value>Closed - Not OK</value>
    <value>Rejected</value>
  </source>
  <target name="MSG_CHS.NOTE.REJECTED" mandatory="true">
    <value>Notizfeld zur Begründung der Ablehnung ist mandator</value>
  </target>
</constraint>

It is not allowed to set values for longtext fields in constraint, but the deploy script based on this solution tries to set it in this way.

im edittype --batch --hostname="localhost" --port="8001" --user="xxx" --password="xxx" --fieldRelationships="Type=MSG_FESW_ChangeRequest_2.0:Project=/MSG;Type=MSG_FESW_ChangeRequest_2.0:MSG_All_Request wird auf Ziel Status gesetzt=-,Rejected,SolutionInDevelopment,SolutionDeveloped,ConceptInDevelopment/Review;State=Closed - Not OK,Rejected:MSG_CHS.NOTE.REJECTED=Notizfeld zur Begründung der Ablehnung ist mandator;MSG_CHS.REQ_REQD.VP.P_FDEF_REQUIRED=Nein:MSG_CHS.ACTION_LIST=-,geplanten Pilot senden,Angebot senden,Task FPV Konzept erstellen;rule=((field["MSG_CHS.REQ_REQD.VP.P_ISSUE_STATE"] = "") or (field["MSG_CHS.REQ_REQD.VP.P_ISSUE_STATE"] != "")):MSG_All_Anforderungstype=Neuentwicklung,Weiterentwicklung,Bugfix" "MSG_FESW_ChangeRequest_2.0" >>deploy.log 2>>deploy.log

The Integrity client expects the relationship in the following format:

State=Closed - Not OK,Rejected:MSG_CHS.NOTE.REJECTED=:all,mandatory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions