Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How create custom create issue form programmatically

shashidhar_s March 12, 2015

Dear All,

I want to display Jira issue create form from an external page. I want to create a bug for a specific project from my plugin.

I want to show only the mandatory(requried) fields to create an issue.

I have the Orderable field objects of all the requried fields (system & Custom fields)

 

Now, I want to build the html programmatically, I will obtain fields and depending ontheir type I need to construct the HTML and if the field is of type select, check box etc I also need to fetch their values. I know that getCreateHTML will give me all I need but I'm exploring the possibility that if I have the field, how can I get to know what type it is? and how can I get predefined values if any?

 

Please help me

Shashi

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2015

Hmm.  I would stop and step back before embarking on this.

Take a look at Jira's "issue collector" function.  For two reasons:

  1.  It already provides a way to inject html or javascript into a page that can pop up a JIRA "create issue" form and post it into JIRA
  2. Even if it's not quite right and you still want to develop your own version, you can probably use the code it generates to do most of your work 

 

shashidhar_s March 13, 2015

Thanks @a display name , I shall look into that option.

TAGS
AUG Leaders

Atlassian Community Events