How do I modify the "Create Issue" dialog?

C L-S November 1, 2012

Ultimately, what I'm looking to accomplish is to modify the "Create Issue" dialog so that the first dropdown is "Project Category" and the list of Projects shown is based upon that project category. I'd like to start by figuring out the makeup of the "Create Issue" dialog and how I can modify it. Any suggestions on resources, or files to look at? I'm assuming that $JIRAHOME/atlassian-jira/WEB-INF/classes/templates/jira is the appropriate place to start poking around? (this is on a dev server to start with)

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
C L-S November 2, 2012

I think I found it...

It looks like it goes through one of the system plugins. If you unzip atlassian-bundled-plugins.zip, and then unzip jira-quick-edit-plugin-1.0.52.jar, you'll find a file in js/Issue called create.js, and it appears as if this is what creates the dialog.

Piyush_Annadate July 25, 2017

can't find create.js.

What I require is to add 'onchange' function to HTML tag of issuetype-field.?

Could you please let me know how can I change it?

0 votes
C L-S November 2, 2012

It looks like I need to find what creates the "create-issue-dialog" div... recursively grep'ing for this string shows that ./atlassian-jira/includes/jira/mention/Mention.js contains a check to see if create-issue-dialog exists but is not what launches it... nothing else is showing up.

0 votes
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.
November 1, 2012

Mmm, that's the right place to start, but you've got some digging to do.

The template file you need to modify will need the field added, and some javascript to do the project narrowing as users change category (apologies, I can't remember which file you need, and I think it changes between versions, so you probably need to tell us which Jira you are on before anyone can really help)

You'll need to expose the project categories and the full list of category-to-project relationships to the template file, which means hacking some core Java to retrieve and publish that data so the template can pick it up.

On top of that, I can think of three different ways to create issues where you might want to do this, all different enough that they don't use the same templates, and I've a nagging doubt that three is a little bit of a low estimate.

C L-S November 1, 2012

It's primarily the ajax overlay dialog that I'm interested in modifying - the one that you get when you hit "+ Create Issue" in the upper right hand corner of most non-admin pages. I spent a few hours looking for it earlier but I'm starting to think it's in one of the binaries. I'd love confirmation if anyone knows.

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.
November 1, 2012

Ah, yes. I'm not sure where that file is either - I think it's a clear ajax overlay, but encapsulated in one of the core .jar files rather than openly held in the web-app, and I don't know which one.

MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2012

Nic's very right, this is a hard change to get right

0 votes
C L-S November 1, 2012

And it's not $JIRAHOME/atlassian-jira/secure/views/createissue-start.jsp - that's not the overlay dialog (although I need to modify it too).

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events