You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Types of property 'content' are incompatible.
Type '{ type: string; content: { text: string; type: string; }[]; }[]' is not assignable to type '{ type: string; text: string; content?: any; }[]'.
Property 'text' is missing in type '{ type: string; content: { text: string; type: string; }[]; }' but required in type '{ type: string; text: string; content?: any; }'.ts(2345)
If I conform to the error shown, the client returns an error: We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.. However, if I instead use client.issues.createIssue(issue as any) to get around the compiler error everything works as expected.
The text was updated successfully, but these errors were encountered:
There appears to be a bug with createIssue. I use the following code:
Which is correct based on the API Documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post
However this error shows in typescript:
If I conform to the error shown, the client returns an error:
We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.
. However, if I instead useclient.issues.createIssue(issue as any)
to get around the compiler error everything works as expected.The text was updated successfully, but these errors were encountered: