Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the "Template for note" even after changing the tracker in issue edit #122

Open
maeda-m opened this issue Dec 17, 2024 · 1 comment
Open

Comments

@maeda-m
Copy link

maeda-m commented Dec 17, 2024

This is a minor detail I noticed while working with the comment templates.

Expected Results

At step 3, the comment template ("Preview Template Contents") should appear as soon as the tracker is changed to one that has a comment template.

Steps to reproduce

  1. Create a issue using a tracker that does not have a comment template.
  2. Edit the issue created in step 1 and change its tracker to one that does have a comment template.
  3. Check the comment form. The comment template ("Preview Template Contents") does not appear.
  4. Click the submit button and edit the issue again.
  5. Check the comment form again. Now the comment template ("Preview Template Contents") appears.

Screenshot

Screenshot for Step 1: Creating a ticket using the "Bug" tracker. Screenshot for Step 2 and 3: Changing the tracker from "Bug" to "Feature request". Screenshot for Step 4 and 5: After changing the tracker and submitting once, editing the issue again shows the comment template.
step1 step2-3 step4-5

Actual Results

Because the comment template is only loaded when the edit form is initially displayed (via view_issues_edit_notes_bottom), the comment form does not refresh after switching the project or tracker. Even when the changed tracker supports a comment template, it is not displayed unless the issue is edited once more.

Environment

admin/info:

Environment:
  Redmine version                6.0.2.stable
  Ruby version                   3.3.6-p108 (2024-11-05) [x86_64-linux]
  Rails version                  7.2.2
  Environment                    development
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Subversion                     1.14.2
  Mercurial                      6.3.2
  Git                            2.47.1
  Filesystem                     
Redmine plugins:
  redmine_issue_templates        1.2.1

redmine_issue_templates:

% git log --oneline -1
34537be (HEAD -> master, origin/master, origin/HEAD) Merge pull request #118 from agileware-jp/add_circleci_job

% git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Copy link

Thank you for contributing to Redmine Issue Templates plugin!' first issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant