# HG changeset patch # User Mike Becker # Date 1757009427 -7200 # Node ID 52193577339c4c83db6bff55ebcb3e47a9b3a7c5 # Parent cbbadb493f228b1b55ca651b18a6122213b82fb2 add possibility to link issues just by number - fixes #718 diff -r cbbadb493f22 -r 52193577339c src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt --- a/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Mon May 26 21:41:02 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Thu Sep 04 20:10:27 2025 +0200 @@ -208,13 +208,10 @@ // determine the target issue val targetIssue: Issue? = http.param("issue")?.let { - if (it.startsWith("#") && it.length > 1) { - it.substring(1).split(" ", limit = 2)[0].toIntOrNull() - ?.let(dao::findIssue) - ?.takeIf { target -> target.project.id == issue.project.id } - } else { - null - } + (if (it.startsWith("#") && it.length > 1) (it.substring(1).split(" ", limit = 2)[0]) else it) + .toIntOrNull() + ?.let(dao::findIssue) + ?.takeIf { target -> target.project.id == issue.project.id } } // check if the target issue is valid diff -r cbbadb493f22 -r 52193577339c src/main/webapp/WEB-INF/changelogs/changelog-de.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Mon May 26 21:41:02 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Thu Sep 04 20:10:27 2025 +0200 @@ -30,6 +30,7 @@
  • Pop-Up hinzugefügt, das über eine neue LightPIT-Version informiert.
  • "Erledigt" Schaltfläche zur Vorgangsansicht hinzugefügt.
  • "In Projekt Öffnen" Schaltfläche zur (globalen) Vorgangsansicht hinzugefügt.
  • +
  • Vorgänge können nun auch direkt über die Vorgangsnummer (anstatt Raute + Nummer) verlinkt werden.
  • Die Standardkategorie für neue Vorgänge in veröffentlichten Versionen ist nun "Fehler" anstelle von "Feature".
  • Fehler in der Deutschen Übersetzung behoben.
  • diff -r cbbadb493f22 -r 52193577339c src/main/webapp/WEB-INF/changelogs/changelog.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Mon May 26 21:41:02 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Thu Sep 04 20:10:27 2025 +0200 @@ -30,6 +30,7 @@
  • Add popup informing about a new LightPIT release.
  • Add convenience RESOLVE button to the issue view.
  • Add convenience OPEN IN PROJECT button to the global issue view.
  • +
  • Change that you can now relate issues by just submitting their number (instead of hash + number).
  • Change that the default category for new issues in released versions is Bug instead of Feature.
  • Fix errors in the German translation.