Menu

UserRequest transition from "Assigned" status back to "Waiting for approval" status

ray
2020-11-11
2020-11-12
  • ray

    ray - 2020-11-11

    Hello everyone,

    I hope all of you are safe and well.

    I'm implementing a 1-way transition from "Assigned" status back to "Waiting for approval" status for UserRequest. I understand that I could do it using the following XML in my extension file for UserRequest:

    <state id="assigned">
      <transitions>
        <transition id="ev_wait_for_approval" _delta="define">
            <target>waiting_for_approval</target>
            <actions/>
        </transition>
      </transitions>
    </state>
    

    I'm just wondering if there's any possible issues with going back from "Assigned" status back to "Waiting for approval" status if anyone has performed this before (I think for certain state changes, some values might be reset).

    Thank you in advance and I look forward to hearing from you.

     
  • Molkobain

    Molkobain - 2020-11-11

    Hello Ray,

    You can do it yes, in the default behavior of iTop no fields will be reset. That being said, you could make an extension that reset some fields when going back to that state.

    Just keep in mind that by doing so, the "approver_id" field that has been set during the previous "Waiting for approval > Assigned" transition will be kept, so it might be a little weird to see the UserRequest having the field and this state.

    Cheers,
    Guillaume

     
  • ray

    ray - 2020-11-12

    Hi Guillaume,

    Thank you very much for your help and feedback on the considerations when creating the new transition.

    Thank you again and have a good one!

    Regards,
    Ray

     
    ❤️
    2

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.