Link issue collectors to html buttons not tabs

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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot