The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Gunnar Skogsholm
February 24, 2020

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 comments

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Gunnar Skogsholm
February 24, 2020

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

Gunnar Skogsholm
May 13, 2020

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} )

TAGS
AUG Leaders

Atlassian Community Events