Skip to content

N°9160 Copy log entry from parent ticket#927

Open
v-dumas wants to merge 7 commits into
developfrom
feature/9160-log-entry-from-parent-ticket
Open

N°9160 Copy log entry from parent ticket#927
v-dumas wants to merge 7 commits into
developfrom
feature/9160-log-entry-from-parent-ticket

Conversation

@v-dumas
Copy link
Copy Markdown
Contributor

@v-dumas v-dumas commented Jun 1, 2026

Base information

Question Answer
Related to a Combodo ticket N°9160
Type of change? Enhancement

Objective (enhancement)

Allow to see in a Ticket log, which entries are coming from the parent ticket as a copy

Proposed solution (bug and enhancement)

Add an automatic prefix on those parent log entries based on a dictionary entry using this syntax

"Class:UserRequest/Method:UpdateChildTicketWith:public_log"
"Class:Incident/Method:UpdateChildTicketWith:private_log"

Those entries receive 2 placeholders

  • the first one is the parent ticket id
  • the second one is the ticket ref

They can use one or the other or even none

By default private log uses an hyperlink to the parent, while public uses just the ref.
This could be changed, but was setup this way to limit the visibility of an iTop portal glitch when such hyperlink are displayed in portal

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • I have added a unit test, otherwise I have explained why I couldn't
  • Is the PR clear and detailed enough so anyone can understand without digging in the code?

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 1, 2026

Greptile Summary

This PR adds parent-ticket log copy markers for child ticket updates. It changes:

  • Adds a shared UpdateChildTicketLog helper for propagating modified case log entries.
  • Updates request and incident lifecycle hooks to copy public and private logs to child tickets.
  • Adds parent_request_id support on incidents for request-to-incident relationships.
  • Adds dictionary prefixes so copied log entries identify their parent ticket.
  • Adds unit coverage for recursive child request log propagation.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Reviews (2): Last reviewed commit: "N°9160 - Add missing dictionary entries" | Re-trigger Greptile

Comment thread datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml Outdated
Comment thread datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml
v-dumas and others added 2 commits June 1, 2026 18:01
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@v-dumas
Copy link
Copy Markdown
Contributor Author

v-dumas commented Jun 1, 2026

@greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants