Menu

how does pending_reason work?

2020-10-08
2020-10-09
  • jose antonio garcia panadero

    Hello, I want to replicate the function of that field, I have created a new Status monitoring, and when I want to change to it, I want a text box to appear like pending_reason but I will call it monitoring_reason, unfortunately im not able to replicate.

     
    • jose antonio garcia panadero

      Trying to replicate the same function of the state pending, Im close to it but it isnt exactly the same, first of all, just by copying the fields of assing isnt working the same way, I supose that somewhere out of this datamodel.userrequest-mgmt,xml is giving more functions to the fields but i cant find it, for example, <field id="cumulatedmonitoring" xsi:type="AttributeStopWatch" _delta="define"> <states> <state id="monitoring" /> </states> <working_time /> <thresholds /> <goal /> </field>
      By doing that i tryed to replicate the time spent on my state monitoring but my output is far away from Resolution delay, because im getting this information of my field

      States monitoring
      Elapsed 64 s
      Started 2020-10-09 10:13:09
      LastStart
      Stopped 2020-10-09 10:18:57

      And i just want the Elapsed time

      Then, in more information i want to put a field monitoring reasong but Im unable to show it only when it entered the state monitoring, it just show up since i assing the ticket.

      Ill add my datamodel so you can see what im doining, i know i shouldnt do it directly on the datamodel but its easier to understand if i do it on there.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.