Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can use python to set the scheduled start date in portfolio?

Edited

I'm trying to use the python API to set the start date of an epic in the Portfolio road map.  I've spent a week trying to figure it out.

                    issue_dict = {   'startdate''2020-01-08',

                                        'duedate''2020-04-08',

                      new_issue = jira.create_issue(fields = issue_dict)

Also looked for other ways, like the WorkLog, to no avail.

Any help would be greatly appreciated.

 

Sorry I'm confused.  Perhaps this doesn't have anything to do with Portfolio.

It may just be about the API to set start dates for a Roadmap in a Next Gen Project

2 answers

1 accepted

0 votes
Answer accepted

startDateFld = getattr(issue.fields, startDateFldName)        
if issueType == 'Epic' and dateStarted is not None and dateStarted != startDateFld:
            issueDict.update( {startDateFldName: dateStarted} )

if row.EndLate is not None:
            dueDate = getattr(issue.fields, 'duedate')
            endLate = row.EndLate.strftime('%Y-%m-%d')
            if issueType == 'Epic' and endLate != dueDate:
                issueDict.update( {'duedate': endLate} )

It may just be about the API to set start dates for a Roadmap in a Next Gen Project

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

560 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you