CreateIssueModal not working. In logs: GraphQL error - The variables input contains a field name 'cu

Hi, I am getting the following issue:

In network logs I get this error:

{“sentFrom”:“jira.frontend.apollo.gira.error.graphql”,“message”:"[GraphQL error]: Message: The variables input contains a field name ‘customFields’ that is not defined for input object type ‘JiraIssueFieldsInput’ , Location: undefined, Path: undefined",“event”:{“message”:""The variables input contains a field name ‘customFields’ that is not defined for input object type ‘JiraIssueFieldsInput’ “”},“buildKey”:“JF-PROD-HOTFIX-3628”,“logTime”:“2022-04-18T08:15:21.956Z”,“browserName”:“Chrome”,“browserVersion”:“100.0”}

Any idea what is wrong?

I updated all dependencies and I used this code:

        const createIssueModal = new CreateIssueModal({
            onClose: (payload) => {
                console.log('CreateIssueModal is closed with', payload);
            },
            context: {
                projectId: '10000',
                issueTypeId: '10000',
                parentId: '10001', // epic id
                summary: 'Issue summary',
                description: { version: 1, type: 'doc', content: [] },
                environment: { version: 1, type: 'doc', content: [] },
                assignee: '61fba7a9530d2a0071479e5d',
                reporter: '61fba7a9530d2a0071479e5d',
                labels: ['label-one', 'label-two'],
                duedate: '2022-02-28',
                priority: '2',
                components: ['10000', '10001'],
                versions: ['10000'],
                fixVersions: ['10001']
            }
        });

        createIssueModal.open();

While all values are real (I edited the example from here https://developer.atlassian.com/platform/forge/custom-ui-jira-bridge/createIssueModal/ and replaced the values with real values that correct for the jira instance that I use)

I also tried it without providing context and got the same issue and error.

Update:
I tried this time to do it on fresh account in very simple plugin.
I used this plugin:
https://bitbucket.org/atlassian/todo-app-custom-ui/src/master/

And in App.js I wrote this code instead of the original code:

import React, { useEffect, useState, Fragment } from 'react';
import { CreateIssueModal } from '@forge/jira-bridge';

function App() {

    function doSomething() {
        const createIssueModal = new CreateIssueModal({
            onClose: (payload) => {
                console.log('CreateIssueModal is closed with', payload);
            }
        });

        createIssueModal.open();
    }

    return (
    <div>
      <button onClick={doSomething}>Click me</button>
    </div>
  );
}

export default App;

When I tested the code, I got the exact same issue with same error in network logs.

So it must be some bug on your side or maybe I just use it wrong.

Hi @GilEliyahu, thank you for reaching out. We will let you know here as soon as this bug will be fixed. Sorry for any inconvenience.

Best regards,
Łukasz

Thank you!
Do you have when approximately it will be fixed?

Hi @GilEliyahu, the fix is ready.
I will inform you here after it will be deployed (it can take a few more days).
Sorry for any inconvenience.

Best regards,
Łukasz

Hi @GilEliyahu,

The fix has been delivered and the CreateIssueModal should work properly now.

Best regards,
Łukasz

Thanks!
It fixed now