Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The 'Child issues' block shows a view listing issues. In the view's footer area, we could have a link 'Add a new child issue', which prepopulates the parent issue field on the node creation form. This would be fairly simple to do with Prepopulate module.
This would presumably default to being in the same project -- I don't think it's that common to have a child issue in a different project.
Here's a sample of the URL it would need: https://prepopulate-drupal.redesign.devdrupal.org/node/add/project-issue...
Comment | File | Size | Author |
---|---|---|---|
#4 | 2426711.project_issue.add-child-issue-link.patch | 4.77 KB | joachim |
Comments
Comment #1
drummThat's a good default, and the project is easy enough to change when needed.
Comment #2
YesCT CreditAttribution: YesCT commentedthis would help replace some of the dreditor clone button functionality
https://github.com/dreditor/dreditor/issues/245
Comment #3
joachim CreditAttribution: joachim commentedThis is running on the dev site -- you can try it out at https://prepopulate-drupal.redesign.devdrupal.org/node/2417827 for instance.
Comment #4
joachim CreditAttribution: joachim commentedHere's a patch that adds the Views area handler and changes the view of child issues to show it.
Comment #6
drummI updated this to use the entityreference_prepopulate module which got deployed on Drupal.org. It can be deployed a few days after we are back from the holiday; for Drupal.org it needs a coordinated deployment with the drupalorg module, so I only committed this to a branch of project_issue module so far.
Comment #8
drummComment #9
drummThis has been deployed to Drupal.org.