Matt Ryall avatar Matt Ryall committed 663b376

CONF-25405: screen-scrape reporter correctly in 'Insert JIRA issue' dialog in JIRA 5.0.3 and later

Comments (0)

Files changed (1)

src/main/resources/jira/createissuepanel.js

                 var createForm = AJS.$('form[action$="CreateIssueDetails.jspa"]', data);
                 var versions = AJS.$('select[name="versions"] option', createForm).not('[value="-1"]');
                 var components = AJS.$('select[name="components"] option', createForm).not('[value="-1"]');
-                var reporter = AJS.$('input[name="reporter"]', createForm).val();
+                var reporter = AJS.$('input[name="reporter"],select[name="reporter"]', createForm).val();
                 var priority = AJS.$('select[name="priority"]', createForm).val();
                 
                 var typeSelectParent = AJS.$('div.type-select-parent', container);
             
         }
     });
-AJS.Editor.JiraConnector.Panels.push(new AJS.Editor.JiraConnector.Panel.Create());
+AJS.Editor.JiraConnector.Panels.push(new AJS.Editor.JiraConnector.Panel.Create());
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.