Skip to content

Instantly share code, notes, and snippets.

@palashkulsh
Created February 4, 2022 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palashkulsh/a2b8cf33bd5629bb432aa08df2164bf7 to your computer and use it in GitHub Desktop.
Save palashkulsh/a2b8cf33bd5629bb432aa08df2164bf7 to your computer and use it in GitHub Desktop.
jira manipulation
jira jql epictask -j 1 | jq '.[] | "\(.key),\(.fields.summary),\(.fields.created),\(.fields.updated)"'
@palashkulsh
Copy link
Author

for plotting using ganntt plotly

`import plotly.express as px
import pandas as pd

df = pd.DataFrame([
dict(Task="Job A", Start='2009-01-01', Finish='2009-02-28'),
dict(Task="Job B", Start='2009-03-05', Finish='2009-04-15'),
dict(Task="Job C", Start='2009-02-20', Finish='2009-05-30')
])

fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task")
fig.update_yaxes(autorange="reversed") # otherwise tasks are listed from the bottom up
fig.show()`

@palashkulsh
Copy link
Author

df=pd.read_excel('/home/palashkulshreshtha/Downloads/CART-9324-timelines.xls')
df
fig = px.timeline(df, x_start="created", x_end="updated", y="summary")
fig.update_yaxes(autorange="reversed") # otherwise tasks are listed from the bottom up
fig.show()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment