Link issue collectors to html buttons not tabs

David Johnson July 24, 2013

We are attempting to make a web page where a tester could submit Bug, Task, Improvement, Epic by clicking on html buttons (not the trigger tab styles that are standard to the issue collector). We are not javascript or jquery power users. Any examples of this?

1 answer

1 accepted

0 votes
Answer accepted
David Johnson July 25, 2013
One of my students came up with this solution. You generate Issue collectors for whatever cases you are collecting. You format a web page and embed the javascript as indicated and then link the script to the button.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sample Issue Collector</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>

<body>

	<div id="wrapper">
    
    	<div id="header">
    	</div>
    	<!--End of header-->
        
        <div id="nav">
            
    	</div>
	    <!--End of nav-->
        
        <div id="content">
        
        	<div id="leftcolumn">
                <h1>
           		Welcome to Sample Tester Issue Collector Page!</h1>
                
                <p>
                	Please report a bug with the button at the top of the page, or suggest an improvement with the button on the right of the page.
                </p>
                
                <p id="bugButton">Report a Bug</p>
                <p id="improvementButton">Suggest Improvement</p>
    	  </div>
		    <!--End of leftcolumn-->
            
            <div id="rightcolumn">
		    </div>
		    <!--End of rightcolumn-->
        
	    </div>
	    <!--End of content-->
        
        <div id="footer">
	    </div>
	    <!--End of footer-->
        
    </div>
    <!--End of wrapper-->

<!--REPLACE WITH YOUR GENERATED JAVASCRIPT-->
<script type="text/javascript" src="http://xxxxxxxxxxxxxxxxxxx/3/1.4.0-m3/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=AAAAAAA"></script>

<!--REPLACE WITH YOUR GENERATED JAVASCRIPT-->
<script type="text/javascript" src="http://xxxxxxxxxxxxxxxxxxx/3/1.4.0-m3/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=BBBBBBB">
</script>

<script type="text/javascript">
	window.ATL_JQ_PAGE_PROPS = $.extend( window.ATL_JQ_PAGE_PROPS,
	{
		// Issue collector ID goes here between the quotes. You can find it in your issue collector's generated Javascript
		"AAAAAAA" :
		{
		
			triggerFunction : function( showCollectorDialog )
			{
				// Element ID
				$( '#bugButton' ).on( 'click', function(e)
				{
					e.preventDefault();
					showCollectorDialog();
				});
			}
		},
	
		"BBBBBBB" :
		{
				triggerFunction : function( showCollectorDialog )
				{
		
					$( '#improvementButton' ).on( 'click', function(e)
					{
						e.preventDefault();
						showCollectorDialog();
					});
				}
		}
	
	});
</script>

</body>
</html>

Suggest an answer

Log in or Sign up to answer