update "public"/"private" status of Asana tasks? - asana

Can I use the Asana API to change a task from public to private or vice versa?
I've checked in the documentation (http://developer.asana.com/documentation/) and don't see anything there.

(I work at Asana)
We also monitor StackOverflow. :) You are correct, changing private/public visibility of tasks is not yet part of the API. Adding this functionality is part of the roadmap, but I can't comment on when it will happen.

Related

Snipcart v3 and 'data-item-stackable' attribute

I'm banging my head against the wall with this for a month. Setting data-item-stackable="never" in Snipcart V3 does absolutely nothing for me.
But there's more weird things going on:
On my dashboard, I'm getting this message saying:
It seems you’re not using the latest version of our shopping cart.
Would you like to switch to the v3.0 ?
Needless to say, I'm using at my site the latest (at the time of writing this) snipcart.js v3.0.31. What is dashboard detecting as Snipcart v2? I've never used Snipcart v2 on the site in question and I didn't migrate from v2 to v3.
In Snipcart v3 documentation, it says that data-item-stackable attribute is enum type. However, in v3 migration guide, it is stated
The data-item-stackable attribute isn't boolean anymore, but a string
that describes the different possible behaviors
So is it a string or is it an enum?
I'd like to know if anyone else had an issue with correct version detecting and/or data-item-stackable doing absolutely nothing? Are those two just different manifestations of the same problem I'm having?
Has anyone succeeded in getting items "non-stacked" with Snipcart v3, without using Javascript SDK, as intended?
Thank you for your time and effort.
Cheers.
Just got the answer from nice guys at Snipcart. It seems that the problem is that data-item-stackable="never" is not working if data-item-quantity has been set on the snipcart button. Here's their answer:
Even if a product isn't stackable, if you specify the quantity on the
product, this value will be used as "default" value, this is why when
you click on the buy button it uses the value you set as quantity.
For your use case, I'd recommend adding the items programmatically,
please take a look at our JavaScript SDK documentation
They even provided a small example here:
https://codesandbox.io/s/crimson-tree-7tffo?file=/index.html

Subscribe to Jira search filter using jira Rest API

I have created a Jira search filter, using this request:
POST /rest/api/2/filter
This worked pretty well. Now after I created the filter, I want to get automatically subscribed to it.
Is there a way to do it with the REST API? Or is the only possible way to do this manually?
I already found this in the documentation: https://docs.atlassian.com/software/jira/docs/api/REST/7.4.1/#api/2/filter-createFilter
There, I found the "subscriptions" property, but I can't seem to figure out how exactly I have to write this, to get the correct syntax.
Thanks.
There is a JIRA Feature Request that is still being considered for this to be implemented. Please take a look at this for more details.
For now, all we can do is Fetch or Create Filters using the JIRA ReST APIs but editing the subscriptions should be manual tasks.
Please take a look at the following Atlassian Question which confirms the same.
Details as provided in this Question:
You can do a GET to see the filter subscriptions values you have via:
GET /rest/api/2/filter/favourite?expand=subscriptions
Hope this helps!

Delete channel in Slack API

I am finishing development of API similar to Slack API, but with more/different features. I have to implement an API (more like command/endpoint) for deleting a room and I can't find anything like that in the documentation.
It seems that it can be done via webUI according to this help article.
But there is no method for it in Slack API methods.
I think there is only channels.archive with similar purpose, but it seems very strange not having a method to delete a room.
Is it really like that that room can't be deleted via Slack API?
There is no method for deleting a channel in the official API, but there is the undocumented method channels.delete that has this exact functionality.
Basic usage is:
https://slack.com/api/channels.delete?token=TOKEN&channel=C12345678
Please note that undocumented methods are not officially supported by Slack and might change or stop working without any prior warning. Still, they are very useful and I have made a github to document all known undocumented methods. Please feel free to use and contribute.
Tried it today 2nd June 2022 and it responds with 'unknown_methods', I guess it's outdated now.

Trying to build a bot that listens for it's own name to be tagged

I've been playing with the reddit API and I'd really like to make a bot that listens for someone to tag it in a comment, and then responds with a comment.
I've been looking through the docs here but haven't found what I'm looking for.
I've seen other bots do this in the past so I feel it must be possible.
If someone could point me in the right direction I'd really appreciate it.
Cheers.
If you use PRAW (Python Reddit API Wrapper), then you can use the redditor.inbox class to track "mentions". http://praw.readthedocs.io/en/latest/code_overview/reddit/inbox.html?highlight=Mentions
Otherwise, AFAIK mentions are just another item in your inbox.
https://reddit.com/r/redditscripting

Tasks and Box API

Does anyone know if there are any plans to add tasks to the api? Like the ability to add or complete tasks? Attach tasks to documents?
Thanks and cheers,
Chad
Yes, there are plans to add tasks to the V2 API. It is not part of our short list to get the V2 API to GA status, but will probably come shortly afterwards.
If you have specific uses for tasks that you'd be willing to share with us, you can let us know more details via email at api at Box dot com.

Resources