package Ġru . hh . android . plugin . actions . jira . merge _ develop _ to _ portfolio Ċ Ċ import Ġcom . intellij . openapi . action System . An Action Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġru . hh . android . plugin . extensions . check Inside Portfolio Branch Ċ import Ġru . hh . android . plugin . extensions . getCurrent Portfolio Branch Name Ċ import Ġru . hh . android . plugin . services . git . Git Service Ċ import Ġru . hh . android . plugin . services . jira . J ira RestClient Service Ċ Ċ class ĠJira Merge Develop To Portfolio Action Ġ: ĠAn Action () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġupdate ( e : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . update ( e ) ĊĊĠĠĠĠĠĠĠ Ġe . presentation . isEnabled Ġ= Ġe . check Inside Portfolio Branch () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠactionPerformed ( e : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġe . project ?. let Ġ{ Ġproject Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġportfolio Branch Name Ġ= Ġe . getCurrent Portfolio Branch Name () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġmob Issue Key Ġ= ĠJira RestClient Service . getInstance ( project ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. create Merge Develop To Portfolio Issue ( portfolio Branch Name ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGit Service . getInstance ( project ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. checkout Mob For Merge Develop To Portfolio ( mob Issue Key , Ġportfolio Branch Name ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ