Creating Folio with REST API

Amit Pandey January 9, 2019

Could you please some one provide complete steps to create folio with all the custom fields, Any example would be help full, I am try to do something like that:

folio_details_string = {"startDate": "2019-01-01", "endDate": "2019-01-01", "description":"First AutoFolio", "isSynchronizedWithTempoBilledHours": false, "currencyCode": "DOLLOR", "savedFilterId": "12345", "name": "AutoFolio", "withRevenue": true, "owner": "Amit Kumar Pandey", "contingency": 0, "tolerance": 0, "isSynchronizedWithWorkLogs": true, "hoursPerDay": 8}

jsonparams = {}
jsonparams["fields"] = folio_details_string
response = session_request.put(alm_url+"/rest/folio/1.0/api/folio/", data=json.dumps(jsonparams))

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2019

Hi! 

 

Please, have a look doc here

http://developer.tempo.io/doc/folio/api/rest/latest/

If you want you can see here some example:  https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/jira-create-issue.py

 

 

Cheers,

Gonchik Tsymzhitov

Amit Pandey January 13, 2019

Thanks for response, The example is for creating Jira Issue Not for creating new Folio, Anyway I am now able to create folio with all the custom fields, but I wonder if I can add Tempo team to folio by REST API.

Susanne Götz _Tempo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 14, 2019

Hi Amit,

can you please check the API you are using as ass Budget APIs  use http://{JIRA_BASE_URL}/rest/tempo-planning/1/api (see also the documentation link provided by Gonchik).


In your case, you will need to use: 

..alm_url+"/rest/tempo-planning/1.0/api/folio/  ...

Regards,
Susanne Götz
Tempo team

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events