{"record":{"id":"4f684bd81bb77db5","repo":"projectdiscovery/nuclei","slug":"w-s","errorCode":null,"errorMessage":"%w => %s","messagePattern":"%w => %s","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/reporting/trackers/jira/jira.go","lineNumber":350,"sourceCode":"\t}\n\tif i.options.IssueTypeID != \"\" {\n\t\tfields.Type = jira.IssueType{ID: i.options.IssueTypeID}\n\t}\n\tif i.options.ProjectID != \"\" {\n\t\tfields.Project = jira.Project{ID: i.options.ProjectID}\n\t}\n\n\tissueData := &jira.Issue{\n\t\tFields: fields,\n\t}\n\tcreatedIssue, resp, err := i.jira.Issue.Create(issueData)\n\tif err != nil {\n\t\tvar data string\n\t\tif resp != nil && resp.Body != nil {\n\t\t\td, _ := io.ReadAll(resp.Body)\n\t\t\tdata = string(d)\n\t\t}\n\t\treturn nil, fmt.Errorf(\"%w => %s\", err, data)\n\t}\n\treturn i.getIssueResponseFromJira(createdIssue)\n}\n\nfunc (i *Integration) getIssueResponseFromJira(issue *jira.Issue) (*filters.CreateIssueResponse, error) {\n\tvar issueURL string\n\n\t// Use SiteURL if provided, otherwise fall back to original issue.Self logic\n\tif i.options.SiteURL != \"\" {\n\t\t// Use the configured site URL for browsable links (useful for OAuth)\n\t\tbaseURL := strings.TrimRight(i.options.SiteURL, \"/\")\n\t\tissueURL = fmt.Sprintf(\"%s/browse/%s\", baseURL, issue.Key)\n\t} else {\n\t\t// Fall back to original logic using issue.Self\n\t\tparsed, err := url.Parse(issue.Self)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}","sourceCodeStart":332,"sourceCodeEnd":368,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/reporting/trackers/jira/jira.go#L332-L368","documentation":"Error \"%w => %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/reporting/trackers/jira/jira.go:350 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}