dosubot[bot] commented on issue #8096: URL: https://github.com/apache/incubator-devlake/issues/8096#issuecomment-2370904267
<!-- Answer --> To set up a JIRA issue and GitHub commit remote link pattern without encountering the "missing {namespace} (400)" error, ensure that the pattern you provide includes the required placeholders. The pattern should be in the format that the system expects, such as: ``` https://github.com/{namespace}/{repo_name}/commit/{commit_sha} ``` In the code, the `RemoteLink` component handles the addition and validation of these patterns. Here is a relevant snippet from the code that shows how to set the pattern: ```tsx <Input key={i} placeholder="E.g. https://gitlab.com/{namespace}/{repo_name}/-/commit/{commit_sha}" value={index === i ? pattern : link.pattern} onChange={(e) => { setPattern(e.target.value); setError(''); }} onFocus={() => { setInedx(i); setPattern(link.pattern); setError(''); }} /> ``` Make sure that when you input the pattern, it includes `{namespace}`, `{repo_name}`, and `{commit_sha}` placeholders correctly. If you encounter the "missing {namespace} (400)" error, it indicates that the `{namespace}` placeholder is not correctly included in your pattern. To avoid this error, ensure your pattern looks like this: ```plaintext https://github.com/{namespace}/{repo_name}/commit/{commit_sha} ``` This pattern includes all necessary placeholders and should prevent the "missing {namespace} (400)" error <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/config-ui/src/plugins/register/jira/transformation-fields/remote-link.tsx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org