
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@deviniti/jql-autocomplete
Advanced tools
Javascript module for autocompleting JQL queries in JIRA.
This repository contains a javascript module for autocompleting JQL queries in JIRA.
Download the jql-autocomplete.js file and include it in your page.
To enable autocompletion on a selected input field create an autocompletion controller:
#!javascript
var JQLAutocomplete = new JQLAutocomplete(data);
and pass the parsed JSON response of this JIRA REST resource using the following method:
#!javascript
JQLAutocomplete.passAutocompleteData(autocompleteData);
The constructorData object is formed as follows:
#!javascript
var constructorData = {
input: element,
render: function(),
getSuggestions: function(),
maxSuggestions: number
};
The input property is a reference to the input field you wish to enable autocompletion on.
To initialize the module, you have to provide a render method.
#!javascript
function render(suggestions) {...}
This method will be called each time the user interacts with the input field. It will receive exactly one parameter - an array containing autocomplete suggestions. The array is formed as follows:
#!javascript
var suggestions = [
{
text: 'string',
onClick: function()
},
...
];
The text property contains the display text for a suggestion. The onClick property is a method that should be called when the suggestion is clicked.
It's up to you how to display the suggestions.
When called, this method should return this JIRA REST resource. The response should be a parsed JSON.
#!javascript
function getSuggestions (fieldName, callback) {...}
It receives exactly two parameters - the name of the field to get the suggestions for and a callback function. The callback function should be called as soon as the REST response arrives and should be given the parsed reponse as the only parameter.
This property is optional - if omitted, the plugin will not autocomplete values for fields.
The maximal number of suggestions you wish the module to generate.
This property is optional - if omitted, the plugin will generate every reasonable suggestion.
FAQs
Javascript module for autocompleting JQL queries in JIRA.
The npm package @deviniti/jql-autocomplete receives a total of 1,074 weekly downloads. As such, @deviniti/jql-autocomplete popularity was classified as popular.
We found that @deviniti/jql-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.