Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Название поля

Описание

* Name of the form

Filled arbitrarily.

* Project

In this project the issues  will be created.

* Issue type

The issues with this type will be created in a project referred in Project field.

* User to create users

The issues will be created on behalf of this user.
(warning) Please note, this user must have create users permission.

* User for search

JIRA will search issues (the fields that will be search indicated below) on behalf of this user .

* Jira URL

The form will refer to JIRA according to this URL form to create issue.

Groups

Created user will be automatically added to this group.

Administrator email

The user can contact the specified address, if it the forms works incorrect.

The output matches

The form will display a list of matches on the current screen.

Fields for search

Summary, Description, Comment, Environment.

Field type for component

  • none;
  • select;
  • checkbox;

    Issue will be created with the selected values of the components. The values are loaded into the form at the time of generation form code. If after the publication of the form you have created a new component, you must update the form to upload another meaning.

Field type for affect version

  • none;
  • select;
  • checkbox;

    Issue will be created with the selected values of the versions. The values are loaded into the form when the form code is generated. If you have created a new version after the form is generated, you must update the form to upload new values.

Allow file upload

Ability to attach a file to the issue (Ability to add multiple files will be added in the next verisons).

Send a notification after user creation

Does not appear on the screen form. Notification will be sent with the authorization data to the new user.

Access level to the issue after creating

Does not appear on the screen form. Enter the required level, if your JIRA has issue security levels.

Field name on the form

The name of the custom field displayed on the screen.

Field type

  • string
  • simple selectlist
  • multi-check
  • cascading-select

Custom field

The name of the custom that will be displayed.

Message about the successful registration of the issue

You can use %ISSUE_LINK% variable in your text about successful issue registration.

Form code

Generated foem code for inserting.

* required fields.

3. Setting up language in form

To select which language to use in the form you need to add this tags to the code of the form:

<div style='display:none;'><input type='text' id='feedback-language' name='feedback-language' class='feedback-language' placeholder='Выберите язык (en/ru)' value='en'/></div>

If you need English - then leave value='en'. If you need Russian - change value to 'ru'.

4. Use Cases

1. Creating issue from a site page

...

Code Block
languagejavascript
linenumberstrue
<STYLE TYPE='text/css'>BODY, input, select, table {
font-size: 12px;font-family: Arial,Helvetica,FreeSans,'sans - serif';}
</STYLE>
<div id='feedback-main-div' style='font-size: 12px; font-family: Arial,Helvetica,FreeSans,sans-serif'>
<div id='feedback-error'></div>
<form enctype='multipart/form-data' id='feedback-form' name='feedback-form' target='feedback-response' method='post' action='http://localhost:8080/plugins/servlet/feedback/create'>
<input type='hidden' name='form-index' id='form-index' value='1'/>
<div><input type='text' id='feedback-summary' name='feedback-summary' size='60' placeholder='Summary' value=''/></div>
<div><TEXTAREA id='feedback-body' name='feedback-body' COLS='62' ROWS='5' placeholder='You can specify the details ...'></TEXTAREA></div>
<div><select id='feedback-component' name='feedback-component'>
<option value='' selected >Select the component</option>
</select>
</div>
<input type='text' id='feedback-email' name='feedback-email' placeholder='E-mail' size='38' value=''/>
<div><input type='file' id='feedback-attachment' name='feedback-attachment' size='38' /></div>
<input type='button' value=' Ask ' onclick='addFeedback()'/>
</form></div>
<iframe id='feedback-response' name='feedback-response' frameborder='no' style='display: none' width='450' height='200'></iframe><div id='feedback-new-issue-div'><input type='button' id='feedback-new-issue-button' value='Create more issue'></div><script type='text/javascript'>
jQuery(window).load(function()
{
   jQuery('#feedback-main-div').show();
   jQuery('#feedback-new-issue-div').hide();
   jQuery('#feedback-response').hide();
   jQuery('#feedback-new-issue-button').click(function ()
   {
    jQuery('#feedback-form')[0].reset();
    jQuery('#feedback-main-div').show();
    jQuery('#feedback-new-issue-div').hide();
    jQuery('#feedback-response').hide();
   });
});

function addFeedback() {
   var summary = jQuery('#feedback-summary').val();
   var email = jQuery('#feedback-email').val();
   if (summary.trim() == '' || email.trim() == '')
   {
    var message = '';
    if (summary.trim() == '')
    {
     message = message + '<div>Enter the summary</div>';
    }
    if (email.trim() == '')
    {
     message = message + '<div>Enter E-mail</div>';
    }
    jQuery('#feedback-error').html(message);
    return false;
}
   jQuery('#feedback-error').html('');
   jQuery('#feedback-main-div').hide();
   jQuery('#feedback-new-issue-div').show();
   jQuery('#feedback-response').show();
   jQuery('#feedback-form').submit();
   return false;
}
</script>

...

5. Using Mail Handler

After the plugin is installed new Teamlead Jira Email Handler will appear. It allows you:

...