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...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

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.

That's a good default, and the project is easy enough to change when needed.

YesCT’s picture

Issue tags: +dreditor feature

this would help replace some of the dreditor clone button functionality
https://github.com/dreditor/dreditor/issues/245

joachim’s picture

This is running on the dev site -- you can try it out at https://prepopulate-drupal.redesign.devdrupal.org/node/2417827 for instance.

joachim’s picture

Status: Active » Needs review
FileSize
4.77 KB

Here's a patch that adds the Views area handler and changes the view of child issues to show it.

  • drumm committed 1afa816 on 2426711-add-child-link
    Issue #2426711: Remove single-use variables
    
  • drumm committed 510cf80 on 2426711-add-child-link authored by joachim
    Issue #2426711 by joachim: Add a link to create a child issue to the...
  • drumm committed 8a2137c on 2426711-add-child-link
    Issue #2426711: Switch to entityreference prepopulate for issue parent...
drumm’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +needs drupal.org deployment

I 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.

  • drumm committed 1afa816 on 7.x-2.x
    Issue #2426711: Remove single-use variables
    
  • drumm committed 510cf80 on 7.x-2.x authored by joachim
    Issue #2426711 by joachim: Add a link to create a child issue to the...
  • drumm committed 8a2137c on 7.x-2.x
    Issue #2426711: Switch to entityreference prepopulate for issue parent...
drumm’s picture

Status: Reviewed & tested by the community » Fixed
drumm’s picture

Issue tags: -needs drupal.org deployment

This has been deployed to Drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.