{"id":23159882,"url":"https://github.com/romain-dartigues/mantisbt-customfieldslinks","last_synced_at":"2025-07-17T07:36:33.862Z","repository":{"id":74164680,"uuid":"145092017","full_name":"romain-dartigues/mantisbt-customfieldslinks","owner":"romain-dartigues","description":"provide custom links for custom fields in MantisBT","archived":false,"fork":false,"pushed_at":"2018-08-20T12:30:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T19:16:07.782Z","etag":null,"topics":["mantisbt-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romain-dartigues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-17T08:12:34.000Z","updated_at":"2018-08-20T12:30:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"bafc547c-ad22-426f-b353-632d65581542","html_url":"https://github.com/romain-dartigues/mantisbt-customfieldslinks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/romain-dartigues/mantisbt-customfieldslinks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romain-dartigues%2Fmantisbt-customfieldslinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romain-dartigues%2Fmantisbt-customfieldslinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romain-dartigues%2Fmantisbt-customfieldslinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romain-dartigues%2Fmantisbt-customfieldslinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romain-dartigues","download_url":"https://codeload.github.com/romain-dartigues/mantisbt-customfieldslinks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romain-dartigues%2Fmantisbt-customfieldslinks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265578045,"owners_count":23791280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mantisbt-plugin"],"created_at":"2024-12-17T22:48:32.266Z","updated_at":"2025-07-17T07:36:33.856Z","avatar_url":"https://github.com/romain-dartigues.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b5f8d541fb9449deae572e480bff7a07)](https://www.codacy.com/app/romain-dartigues/mantisbt-customfieldslinks?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=romain-dartigues/mantisbt-customfieldslinks\u0026amp;utm_campaign=Badge_Grade)\n\nThis [MantisBT] [plug-in](https://github.com/mantisbt-plugins/) is an attempt to provide custom links for custom fields.\n\n[MantisBT]: https://github.com/mantisbt/mantisbt\n\n## Use case\n\nSay you want to be able to link an issue in your Mantis to another Mantis and another tool (Atlassian Jira®, GitHub®, … whatever).\n\n1. you [create][ccf] two new [custom fields], for example: `Jira_project`, `GitHub_project_issue` and `OtherMantis_project`\n2. set them as \"string type\", with a regular expression to use for validating user input (examples: `(\\w+)` or `(\\d+)`); this part is important because the regex will be used for data extraction by the plug-in\n3. configure this plug-in through the administration interface, for example:\n```\nJira_project = https://jira.example.net/browse/%s\nGitHub_project_issue = https://github.com/project-group/project/issues/%d\nOtherMantis_project = https://mantisbt.example.net/view.php?id=%d\n```\n\nThat's it, now your custom fields will be links.\n\n[custom fields]: https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.customize.customfields.definitions.html\n[ccf]: https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.customize.customfields.editing.html\n\n## Notes\n\nI quickly made this plug-in to answer some internal needs, to replace the legacy solution which was an ugly patch against `core/custom_field_api.php` `string_custom_field_value()`, and lastly because I haven't found a more appropriate way to do it.\n\nI wouldn't had needed to go to such hackish lengths if MantisBT bug / feature-request [#13180] (Url template custom field) would have been properly implemented to the core.\n\n[#13180]: https://www.mantisbt.org/bugs/view.php?id=13180\n\nIf you know a more sensible way to implement this, by any means, [let me know](https://github.com/romain-dartigues/mantisbt-customfieldslinks/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromain-dartigues%2Fmantisbt-customfieldslinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromain-dartigues%2Fmantisbt-customfieldslinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromain-dartigues%2Fmantisbt-customfieldslinks/lists"}