Skip to content

Commit

Permalink
[splints] add more field updates to Constants.pm and 0.0.7-dev README.
Browse files Browse the repository at this point in the history
  • Loading branch information
smokhov committed Jan 8, 2018
1 parent 1275467 commit e221a3a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# splints
**S**pecial-**P**urpose **L**egwork for **IN**tegration of **T**icketing **S**ystems

v0.0.6
v0.0.7-dev

Table of Contents
=================
Expand Down Expand Up @@ -162,6 +162,7 @@ Current version has limitations below. See supported API.
| API | FP11 + Perl | FP11 + PHP | FP11 + Java |
| ------------------------------ |:-----------:|:----------:|:-----------:|
| `Config` | * | * | |
| `Constants` | +-- | | |
| `PromptCredentialsProvider` | * | | |
| `HardcodedCredentialsProvider` | * | | |
| `FootPrints11` | * | * | |
Expand All @@ -186,6 +187,7 @@ Current version has limitations below. See supported API.
### Details ###

- `SPLINTS::Config` -- FootPrints instance URLs, credentials, etc.
- `SPLINTS::Constants` -- legend and constants for common and custom fields and their values
- `SPLINTS::PromptCredentialsProvider` -- simple credentials prompting modue (default)
- `getUsername()`
- `getPassword()`
Expand Down
62 changes: 48 additions & 14 deletions src/perl/fp/v11/SPLINTS/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,53 @@
use strict;
use warnings;

#
# Legend and constant values
# @since 0.0.7
#

package SPLINTS::Constants;

our
(
$WORKSPACE = 'projectID',
$ISSUE = 'mrID',
$ISSUE_SUBJECT = 'title',
$ISSUE_STATUS = 'status',
$CONTACT_FIRST_NAME = '',
$CONTACT_LAST_NAME = '',
$CONTACT_EMAIL = '',
$SUBMITTER = 'submitter',
$ASSIGNEES = 'assignees',
$PRIORITY_NUMBER = 'priorityNumber',
$DESCRIPTION = 'description'
);
# Fields

our $WORKSPACE = 'projectID';
our $ISSUE = 'mrID';
our $ISSUE_SUBJECT = 'title';
our $ISSUE_STATUS = 'status';
our $CONTACT_FIRST_NAME = 'First__bName';
our $CONTACT_LAST_NAME = 'Last__bName';
our $CONTACT_EMAIL = 'Email__bAddress';
our $SUBMITTER = 'submitter';
our $ASSIGNEES = 'assignees';
our $PRIORITY_NUMBER = 'priorityNumber';
our $DESCRIPTION = 'description';

# Custom fields
our $IMPACT = 'Impact';
our $URGENCY = 'Urgency';
our $CONTACT_METHOD = 'Contact__bMethod';
our $TICKET_TYPE = 'Type__bof__bTicket';
our $SERVICE_CATGORY = 'Service__bCategory';
our $SERVICE_NAME = 'Service__bName';

# Common field values

our @aImacts = ('Single User');
our %hValidImpacts = ($IMPACT => @aImacts);

our @aUrgencies = ('Working Normally / Inquiry');
our %hValidUrgencies = ($URGENCY => @aUrgencies);

our @aContactMethods = ('Email', 'Other');
our %hValidContactMethods = ($CONTACT_METHOD => @aContactMethods);

our @aTicketTypes = ('Service Request', 'Incident');
our %hValidTicketTypes = ($TICKET_TYPE => @aTicketTypes);

our @aServiceCateogies = ('User - IT Support');
our %hValidServiceCategories = ($SERVICE_CATGORY => @aServiceCateogies);

our @aServiceNames = ('ENCS Services');
our %hValidServiceNames = ($SERVICE_NAME => @aServiceNames);

# EOF

0 comments on commit e221a3a

Please sign in to comment.