Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Open the issue creation window via REST

aas
Contributor
October 20, 2019

Hello everybody! Is it possible to open issue creation popup window in jira via REST API or another way (may be scriptrunner can help or I have to use js)? I have service which collect some fields for issue creation but not all and I need to open prefilled jira issue creation window from that service with that fields and the remaining fields user would fill by himself. Will be glad to any help.

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Champion
October 20, 2019

@aasopening a issue create window in an UI operation, so there is no possibility of opening it via REST API, or Scriptrunner.

But you have two options here,

  1. Take a look at this - https://confluence.atlassian.com/jirakb/how-to-create-issues-using-direct-html-links-in-jira-server-159474.html
    1. It explains how to open issue window with prefilled data.
  2. Using REST API
    1. Fetch issue create meta (to get all options related to issue create)
    2. Create custom form, fill desired data
    3. Create issue using that data.
aas
Contributor
October 21, 2019

Thats directly what I need, thanks!

aas
Contributor
October 21, 2019

Is it possible to add attachements in field attachement in the window with prefilled data? Or I have to add it manually?

DPKJ
Community Champion
October 21, 2019

I'm afraid you have to attachments manually.

Suggest an answer

Log in or Sign up to answer