Thu, 04 Sep 2025 20:10:27 +0200
add possibility to link issues just by number - fixes #718
--- 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
--- 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 @@ <li>Pop-Up hinzugefügt, das über eine neue LightPIT-Version informiert.</li> <li>"Erledigt" Schaltfläche zur Vorgangsansicht hinzugefügt.</li> <li>"In Projekt Öffnen" Schaltfläche zur (globalen) Vorgangsansicht hinzugefügt.</li> + <li>Vorgänge können nun auch direkt über die Vorgangsnummer (anstatt Raute + Nummer) verlinkt werden.</li> <li>Die Standardkategorie für neue Vorgänge in veröffentlichten Versionen ist nun "Fehler" anstelle von "Feature".</li> <li>Fehler in der Deutschen Übersetzung behoben.</li> </ul>
--- 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 @@ <li>Add popup informing about a new LightPIT release.</li> <li>Add convenience RESOLVE button to the issue view.</li> <li>Add convenience OPEN IN PROJECT button to the global issue view.</li> + <li>Change that you can now relate issues by just submitting their number (instead of hash + number).</li> <li>Change that the default category for new issues in released versions is Bug instead of Feature.</li> <li>Fix errors in the German translation.</li> </ul>