I have two pages that I am dealing with. My first is a form we will call mainform.php that holds a form that users write down test results from tests they have conducted. These test results are submitted into a database upon submission of the form. Within mainform.php I have a Jira issue slider tab that users can log issues they run into while running the tests. My second page (issueSubmit.php) is the page that interacts with the JIRA Rest API and sends the information the JIRA. The output of the command is a bunch of info including a JIRA issue number.
My question is, what would be the best way to have the JIRA issue number sent back to the first page (so that it can be attached to those test results). Keep in mind that mainform.php is not being refreshed and the user is not navigating away from it until they hit the form submit button. I thought about AJAX but from what I have read I am not sure AJAX by itself is enough. Any suggestions would be great.