Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     postCreateIssue(code: string, issue: IssueSubmitModel): Observable<any> {
  2.  
  3.         let urlSearchParams = new URLSearchParams();
  4.  
  5.         for (let key in issue) {
  6.             if (key == "TaskEstimationHours") {
  7.                 if (issue[key] != undefined && issue[key] != null) {
  8.                     let taskEstimationHours = (issue[key] + '').replace(".", ",");
  9.                     urlSearchParams.append(key, taskEstimationHours);
  10.                 }
  11.             }
  12.             else {
  13.                 urlSearchParams.append(key, issue[key]);
  14.             }
  15.         }
  16.  
  17.         let body = urlSearchParams.toString();
  18.         let action = String.Format(this.actionCreateIssue, code);
  19.         return this.apiService.executePost(action, body);
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement