import React from "react"; import Link from "next/link"; import { useFormContext, Controller } from "react-hook-form"; // icons import { PlusIcon } from "@heroicons/react/20/solid"; // hooks import useProjects from "hooks/use-projects"; // components import { CustomSelect } from "components/ui"; import { Input } from "@plane/ui"; // types import { IJiraImporterForm } from "types"; export const JiraGetImportDetail: React.FC = () => { const { control, formState: { errors }, } = useFormContext(); const { projects } = useProjects(); 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.

)}
)} />
); };