Last active
August 29, 2015 13:57
-
-
Save asimpkin/9494765 to your computer and use it in GitHub Desktop.
ServiceNow - UI Page - jira_create_bug - HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> | |
<g:ui_form> | |
<input type="hidden" name="sysparm_task_id" value="${sysparm_task_id}" /> | |
<input type="hidden" name="sysparm_task_number" value="${sysparm_task_number}" /> | |
<input type="hidden" name="issue_type_id" value="1" /> | |
<h1>Creating Jira Bug from ${sysparm_task_number}</h1> | |
<g:evaluate> | |
var Projects = new GlideRecord('u_jira_projects'); | |
Projects.orderBy('u_project_key'); | |
Projects.query(); | |
var Task = new GlideRecord('${sysparm_task_class}'); | |
Task.get('number' , '${sysparm_task_number}' ); | |
</g:evaluate> | |
Jira Project: <select name="project_id"> | |
<j:while test="${Projects.next()}"> | |
<option value="${Projects.u_project_id}">${Projects.u_project_key} - ${Projects.u_name}</option> | |
</j:while> | |
</select><br/> | |
<!-- BUG requires severity --> | |
<j:if test="${jvar_class!='sc_req_item'}"> | |
Severity: <select name="issue_severity"> | |
<option value="10040">1 - Show Stopper</option> | |
<option value="10041">2 - Functional Defect without Workaround</option> | |
<option value="10042">3 - Functional Defect with Workaround</option> | |
<option value="10050">4 - Cosmetic or Nice to Have</option> | |
</select> | |
<br /> | |
</j:if> | |
Summary: <input id="short_description" name="short_description" style="width:400px;" value="${Task.short_description}" /><br/> | |
Description:<br/><textarea id="description" name="description" cols="100" rows="10">${Task.description}</textarea> | |
<p/> | |
<button type="submit" id="submit" name="submit" value="TRUE" onclick="return Waiting()" style='padding:2px;'>Create Issue</button> | |
<div id="waiting" style="visibility: hidden;">MID Server Processing...<br/><img src="images/please_wait.gifx" alt="${gs.getMessage('Please Wait')}" /></div> | |
</g:ui_form> | |
</j:jelly> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment