import React from "react"; // next import Link from "next/link"; // react hook form import { useFormContext, Controller } from "react-hook-form"; // icons import { PlusIcon } from "@heroicons/react/20/solid"; // hooks import useProjects from "hooks/use-projects"; // components import { Input, CustomSelect } from "components/ui"; import { IJiraImporterForm } from "types"; export const JiraGetImportDetail: React.FC = () => { const { register, 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 )} } verticalPosition="top" > {projects && projects.length > 0 ? ( projects.map((project) => ( {project.name} )) ) : (

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

)}
)} />
); };