1.3.1 • Published 4 years ago

@spmeesseman/extjs-pkg-mantis v1.3.1

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

ExtJs Package Wrapper for MantisBT Rest API

semantic-release app-publisher

Description

This package provides an ExtJS package wrapper for MantisBT integration, including a full tabbed ui.

Install

To install this package, run the following command:

npm install @spmeesseman/extjs-pkg-mantis

Usage

To include the package in an ExtJS application build, be sure to add the package name to the list of required packages in the app.json file:

"requires": [
    "mantis",
    ...
]

For an open tooling build, also add the node_modules path to the workspace.json packages path array:

 "packages": {
    "dir": "...${package.dir}/node_modules/@spmeesseman/extjs-pkg-mantis"
}

Simply include the view component and model files into any class file:

require: [ 
    'Ext.ux.mantis.Tickets',
    'Ext.ux.mantis.model.Ticket' 
]

Add the view to your layout:

items: [
{
    flex: 1,
    xtype: 'tickets'
}]

Configure the ExtJs build for MantisBT integration, see the Configuration section for details.

Configuration

A mantis config must be added to the Ext manifest by editing app.json. For example, a sample mantis config would like something like the following:

"mantis":
{
    "project_id": 1,
    "project_name": "MyProjectName",
    "token": "............................",
    "versionIsPatchX": false,
    "location": "https://my.domain.com/mantisbt/",
    "defaultTicketValues":
    {
        "priority": 30,
        "severity": 50,
        "reproducibility": 70,
        "category": 1,
        "custom_fields": [
        {
            "field": 
            { 
                "name": "User" 
            },
            "value": ""
        },
        {
            "field": 
            { 
                "name": "Department" 
            },
            "value": ""
        }]
    },
    "myTicketFilters": [
    {
        "property": "custom_field_3" ,
        "value": ""
    },
    {
        "property": "custom_field_4",
        "value": ""
    }],
    "locationTicketFilters": [
    {
        "property": "custom_field_4" ,
        "value": ""
    }]
}

Configuration - Parameter Definitions

TODO

1.3.1

4 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago