Additional Comments Updating twice

DUGGI
Giga Guru

We have ticket table(u_ticket) & Request Table(sc_req_item).

Step 1: Using Record producer user will submit ticket(TKT0010200).

Step 2:ITIL Users(Process Users) will process the ticket(cross check the selected values in the ticket and click next).

Step 3: Request Item(RITM0001400) will created based on selected values in the ticket.

 

End user(ESS) can see only Ticket, if user updates Additional comments in Ticket(TKT0010200) same should push to Request Item(RITM0001400).

Same should happen from Request Item to Ticket.

 

For this i have created business rules on Ticket & Request Items table,

 

if(current.comments.changes()){

  tkt.comments = current.comments.getJournalEntry(1);

      }

***********************************

if I update comments in Ticket((TKT0010200)Acdditional Comments.JPG) ,i am seeing Twice in Activity log,because from request item business rule also triggering immediately.

 

I want to stop this.

4 REPLIES 4

Michael Fry1
Kilo Patron

You probably need to add a condition to the business rule on the sc_req_item table. Something like current.comments.changes(). Do you have any fields that need to be updated when a request item is updated, time worked, or ? That's what you can set your condition on.



Adding the condition should stop the 2nd BR from firing if ticket is updated.


ashishrane
Tera Contributor

Hi Ravindra,



How are you ? What is your contact number ?



Regards,


Ashish


DUGGI
Giga Guru

TKT Business Rule.JPGRequest Item Business Rules.JPG


Did you try changing your business rule on the ticket table to a Before instead of an After, and commenting out the tkt.update(); line?