@fivestarprogramming/fsp-support
v16.0.4
Published
User Issue app
Downloads
15
Readme
Fsp Support
Fsp Support library for Angular.
Versions
| Angular | user-issue | |------------------|:----------:| | >=13.0.0 <14.0.0 | v13.x.x | | >=12.0.0 <13.0.0 | v12.x.x | | >=11.0.0 <12.0.0 | v11.x.x | | >=10.0.0 <11.0.0 | v10.x.x | | >=9.0.0 <10.0.0 | v9.x.x |
Getting started
Step 1: Install @fivestarprogramming/fsp-support
:
NPM
npm i @fivestarprogramming/fsp-support
Step 2: Import the NgSelectModule and angular FormsModule module:
import { FormsModule } from '@angular/forms';
import { UserIssueLibModule } from '@fivestarprogramming/fsp-support';
@NgModule({
declarations: [AppComponent],
imports: [FormsModule ,UserIssueLibModule.forRoot({
apiUrl:'https://localhost:44310/api',
appKey:'',
appName:''
})],
bootstrap: [AppComponent]
})
export class AppModule {}
Step 3: Include a theme:
@import "~@fivestarprogramming/fsp-support/assets/style.css";
Step 4: include the user info and show when auth , use the service:
import { UserIssueAuthService } from '@fivestarprogramming/fsp-support';
this._UserIssueAuthService.setCurrentUser({
name: 'user',
email: '[email protected]'
});
Step 5: In template use fsp-user-issue
component with your options
<fsp-user-issue [showBugIcon]="true" ></fsp-user-issue>
To call popup directly from typescript
import { FspSupportService } from '@fivestarprogramming/fsp-support';
constructor( private _FspSupportService:FspSupportService) { }
onShowFspSupport(){
this._FspSupportService.setShowPopup(true);
}
To call popup directly By ShortCut
Alt + B
In backend part 1 you need to insert in db this info
INSERT INTO [dbo].[Projects]
([Id]
,[Name]
,[Key]
,[JiraReporterId]
,[JiraProjectId]
,[JiraAssigneeId])
VALUES
(<Id, uniqueidentifier,> --generate Guid
,<Name, nvarchar(max),> --name of project
,<Key, nvarchar(450),> --key will add in frontend module to attach with backend (appKey)
,<JiraReporterId, nvarchar(max),> --jira reporter Id from jira profile https://?.atlassian.net/jira/people/{userId}
,<JiraProjectId, nvarchar(max),> --jira project id its exist in project setting
,<JiraAssigneeId, nvarchar(max),>) -- jira assign id from jira profile https://?.atlassian.net/jira/people/{userId}
In backend part 2 if you need create issue by specified user you need to insert (optional)
INSERT INTO [dbo].[JiraUsers]
([Id]
,[Name]
,[Email]
,[JiraToken]
,[ProjectId])
VALUES
(<Id, uniqueidentifier,> --generate Guid
,<Name, nvarchar(max),> --name of user
,<Email, nvarchar(max),> --user email that used for jira
,<JiraToken, nvarchar(max),> --jira token for the user
,<ProjectId, uniqueidentifier,>) -- its id for selected project from db