Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the process’ start Day? #23

Open
iT-Boyer opened this issue Jun 21, 2019 · 2 comments
Open

How to set the process’ start Day? #23

iT-Boyer opened this issue Jun 21, 2019 · 2 comments

Comments

@iT-Boyer
Copy link

iT-Boyer commented Jun 21, 2019

Set the start time of the progress bar
屏幕快照2019-06-21上午10 22 11

@iT-Boyer iT-Boyer changed the title How to set milestones’ start Day? How to set the process’ start Day? Jun 21, 2019
@schmidtdav
Copy link

I have the same question - for me they all start beginning of 2018

@oliviajohansen
Copy link

this is really late but hope it helps

var Issue = function(ghAttributes) {
   this._ghAttributes = ghAttributes;
   //this.developper = null;

   this.title = ghAttributes.title;
   this.number = ghAttributes.number;
   //set start and closed date here
   this.start = ghAttributes.created_at;
   this.closed = ghAttributes.closed_at; // null if we get /issues?state=open

   this.milestone = Milestone.byId[ghAttributes.milestone.id];
   this.milestone.issues.push(this);
};

ganttItem: function() {

      var dev = this.getDevName();
      console.log(this.start, this.closed);
      return {
         // set start and close date for the issue here
         from: "/Date("+this.start+")/",
         to: "/Date("+this.closed+")/",
         label: this.title,
         desc: '#'+this.number + ': ' + this.title,
         customClass: config.colorByDev[dev] || "ganttRose",
         dataObj: {
            issue: this.number
         }
      };

   },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants