Feature Request (Global Template)

Sravanthi Yendluri avatarSravanthi Yendluri created an issue

Thank you for the wonderful plugin. I have a feature request. It would be great if the user can add a template globally to all the projects instead of going to each project and creating a new Issue Template for a tracker type. Maybe we can have an option if the user wants to add it globally or just for that project May be we can have a parent project that has the template and then if anything gets changed in that template, update the changes in the rest of all the projects

Comments (12)

  1. Sravanthi Yendluri

    Yes it does. But I am not sure what global templates are. but from what I saw and from the test case that I have, I am good with creating a global issue template for all the projects for a desired tracker type.

  2. Sravanthi Yendluri

    Following is the query i wrote to add the issue templates to all the projects:

    INSERT INTO issue_templates (title,project_id,tracker_id,author_id,note,description,enabled,created_on,updated_on,issue_title) SELECT issue_templates.title, Inbound.project_id, issue_templates.tracker_id, issue_templates.author_id, issue_templates.note, issue_templates.description, issue_templates.enabled, issue_templates.created_on, issue_templates.updated_on, issue_templates.issue_title FROM (SELECT DISTINCT project_id FROM projects_trackers WHERE tracker_id IN (SELECT tracker_id FROM issue_templates WHERE project_id = (SELECT project_id from issue_template_settings where enabled = 1 and help_message != "") )) AS Inbound, issue_templates WHERE issue_templates.project_id = (SELECT project_id from issue_template_settings where enabled = 1 and help_message != "") AND NOT EXISTS (SELECT project_id from issue_templates WHERE Inbound.project_id = issue_templates.project_id) ORDER BY Inbound.project_id, issue_templates.tracker_id

    Please suggest if I have to change anything else

  3. Akiko Takano

    Hi, I've released version 0.0.6, this release support inherit parent project templates. And I'm going to add the feature for global template before long.

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.