import React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; import { observer } from "mobx-react-lite"; import { useFormContext, Controller } from "react-hook-form"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // icons import { Plus } from "lucide-react"; // components import { CustomSelect, Input } from "@plane/ui"; // types import { IJiraImporterForm } from "types"; export const JiraGetImportDetail: React.FC = observer(() => { const router = useRouter(); const { workspaceSlug } = router.query; const { control, formState: { errors }, } = useFormContext(); const { project: projectStore } = useMobxStore(); const projects = workspaceSlug ? projectStore.projects[workspaceSlug.toString()] : undefined; return (

Jira Personal Access Token

Get to know your access token by navigating to{" "} Atlassian Settings

( )} />

Jira Project Key

If XXX-123 is your issue, then enter XXX

( )} />

Jira Email Address

Enter the Gmail account that you use in Jira account

( )} />

Jira Installation or Cloud Host Name

Enter your companies cloud host name

( )} />

Import to project

Select which project you want to import to.

( {value && value !== "" ? ( projects?.find((p) => p.id === value)?.name ) : ( Select a project )} } > {projects && projects.length > 0 ? ( projects.map((project) => ( {project.name} )) ) : (

You don{"'"}t have any project. Please create a project first.

)}
)} />
); });