Search Jira Issue Screen Flow
Provide a view to flow as in the screenshot below.
Initially, if you are utilizing the Related Jira Issue View (Peeklogic Setup), ensure you have the view configured for the object you wish to associate with the Jira Issue.
Next, create an element screen and add the Peeklogic_SearchJiraIssueScreenFlow component to it. Populate the Related JIRA Issues View field with the ID obtained from the Get Issue View, or leave it blank to use the default view. Ensure the Selected Jira Issues field remains empty.
The following step involves creating an object (such as a Case object in this example) to which the newly created Jira issues will be linked.
Next, add the peeklogic_jc__LinkSelectedJiraIssuesToRecord Apex action. Pass the jiraIssueKeys values obtained from the Peeklogic_SearchJiraIssueScreenFlow and the sObjectId from the Created Record element.
Also, you can add an error path and display the error in the Display Text element using {!$Flow.FaultMessage}
Position the button to launch the screen flow wherever required. Use it to locate and select the necessary Jira tickets.
Once the screen flow completes all its elements, a Salesforce record will be created and linked to the selected Jira tickets.