By following the instructions given at https://confluence.atlassian.com/jirakb/creating-issues-via-direct-html-links-159474.html I have been able to have a "Create Issue" screen shown as effect of a workflow post-function.
However, the beginning of the link above states that
Please note that the content on this page is not maintained as a supported component of JIRA applications. Consequently Atlassian cannot guarantee to provide any assistance in configuring or implementing it.
As far as I am aware, what I want to do cannot be achieved using the REST API.
Is this correct?
If so, what "maintained" method would you suggest me to use in place of that mentioned in the link above?
This seems a little confused as you mention "post functions" a couple of times, but in the wrong context and suggesting that they are doing things that they simply can't.
A post-function is a chunk of code that executes after a transition is committed. Any transition (including create) will go through things in this order: Conditions (to check the user can do it), present screen if appropriate, validate entry, then finally the post-functions. So, post-functions have nothing to do with filling in fields - they happen well after you've finished with the screens and fields.
The REST API does not pre-fill things either. It does not use the UI, so there is nothing there to be pre-filled. You can use it for creating issues, and if you do, your code can be written to fill in defaults if you want. But there's nothing to do in JIRA here, you fill in the defaults in your call.
The doc you have pointed to is about pre-filling values in an html call. If that is still what you are trying to do, then the method works, but it's still going to be a case of coding in the call to fill values, you're not doing anything in JIRA.
Again, a post-function is part of a transition, and it happens at the end. It's too late to do anything with the screen.
Even if it were not, post-functions are not for doing front-end things, they don't have any way to trigger any activity for the user.
The way I do this is using a web item which leads to a https://scriptrunner.adaptavist.com/latest/jira/fragments/CreateConstrainedIssue.html
Optionally you can then have the create transition of the new issue action the issue you are creating it "from"...
Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs