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

Setting an owner of project #3

Open
santiago26 opened this issue Sep 13, 2018 · 1 comment
Open

Setting an owner of project #3

santiago26 opened this issue Sep 13, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@santiago26
Copy link

Hi. I'm using this lib for integration of our internal PM system and teamwork. I have looked throught available API methods and didn't find anything about Project owner.

Did i got it correct that Setting of project owner is not supported for now?

@moshie
Copy link
Owner

moshie commented Nov 7, 2018

@santiago26 Thanks for the pull request! Sorry it took so long to get back to you been very busy...

You can achieve a lot of what's in project owner api with the tw.projects api but I will certainly merge in your PR as soon as the requested changes have been made 👍

// Get
tw.projects.get({
    includeProjectOwner: true
}, project_id)

// Set
tw.projects.update(project_id, {
    project: {
        projectOwnerId: 24
    }
})

// Delete
tw.projects.update(project_id, {
    project: {
        projectOwnerId: '0'
    }
})

@moshie moshie added the enhancement New feature or request label Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants