#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

How to form links to Planner tasks

koskila
Reading Time 3 min
Word Count 384 words
Comments 8 comments
Rating 4 (5 votes)
View

Office 365 Planner is a neat tool for task management. However, when you, for whatever use case, need to form URLs that point you towards a single task (or a bucket, or a plan for that matter), you might run into trouble with how the URL is formed. Custom domains actually make it a bit complicated, but luckily there's a workaround!

Description of the issue

If you have multiple domains in your Azure AD, your Planner might end up using your custom domain in its URLs. However, if you need to develop some multi-tenant code, that works with any tenant and whatever weird custom domains, you'd have to actually either create another user-supplied property (for the custom domain), or develop some creative extra code to fetch the domains from somewhere... Since the Graph API for Planner certainly does NOT return that!

No worries - you don't actually need to develop any complicated or smart code. It's actually WAY easier than that!

Solution

So - Graph API does not return any URLs for Plans, Planner, or any Tasks you might get from the API. That might complicate any custom functionality you'd maybe want to create... But you can just access Planner to see the URLs (see the picture below), and if need be, take note of the custom domain included!

Selecting Planner from the waffle (see the custom domain in the url!)

Selecting Planner from the waffle (see the custom domain in the URL!)

This should help us figure out, how the URLs are constructed. Let's see...

Now, links to single tasks will be like this:

https://tasks.office.com/**customdomain.com**/EN-US/Home/Planner#/plantaskboard?**groupId=2dcc6885-53d4-4506-a040-063cbc7dcc80**&**planId=9KHxgT0X-0ebDNk\_M5AnKpYAFl8e&taskId=WdU82Alj40-K1yFuECbKoZYAADDq**

Pretty horrible, right? No worries, though, here is the solution:

Time needed: 5 minutes.

Forming links for Microsoft Planner 365

  1. **You can create short links, like this:
    **

    https://tasks.office.com/customdomain.com/en-us/Home/Task/**WdU82Alj40-K1yFuECbKoZYAADDq**

    That's a lot better, right? But we STILL have that darn custom domain there! What can we do about it?

  2. Replace the custom domain with your built-in cloud domain

    Like this:

    https://tasks.office.com/**yourorganization.onmicrosoft.com**/en-us/Home/Task/**WdU82Alj40-K1yFuECbKoZYAADDq**

  3. **If you want to make it even simpler, you can also remove the "en-us" from the URL, and Planner will just figure out which locale to use itself.
    **

    https://tasks.office.com/**yourorganization.onmicrosoft.com**/Home/Task/**WdU82Alj40-K1yFuECbKoZYAADDq**

And there you go! According to my testing, it seems like the task ids are always unique, and even with the built-in domain Planner will handle redirections just fine by itself.

And there you go!

Comments

Interactive comments not implemented yet. Showing legacy comments migrated from WordPress.
Jonathan Cardy
2019-10-03 18:10:33)
Hey, thanks for this. After a bit of testing it appears you can also omit the domain name to simply do: https://tasks.office.com/Home/Task/WdU82Alj40-K1yFuECbKoZYAADDq
2019-10-07 16:01:21
Oh, it is? That's great - way easier that way! Might've just been my configuration or something that has changed over time, but when I was testing this it didn't work that way. Happy to hear it's improved - thanks for sharing!
Ga Kin Chi
2021-02-18 15:25:21)
Hi, Antti. Thanks for the article. Confirms my first suspicion. However, you also mentioned about a bucket URL. I have had a hard time trying to figure out yet how to produce a link to just show/filter a specific Bucket link... Have you come across any possibility to link to a Bucket with multiple tasks in view yet?... I've tried multiple ways which either throws bad URL or typical "object not found" messages unfortunately... GK
Antti K. Koskela
2021-02-25 17:43:13
Hi GK, Thanks for your comment and question! I have unfortunately not come upon such url. Annoyingly, Planner doesn't even offer you any way to share a pre-filtered url, which would help achieving that... While the whole Task ecosystem is kind of in flux right now - I suspect there will be even more announcements at Ignite - I'm not sure any of such workarounds would even work for very long. But then again, it's Microsoft, so you never know! If you're comfortable with coding, you could hack together an SPFx webpart that would let you show tasks filtered by certain buckets? You could use something like this as the starting point! https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-mytasks/README.md Hope this helps!
manolo
2022-04-04 12:35:02)
thanks a lot :)
Antti K. Koskela
2022-04-05 09:13:38
Happy to be of help, manolo!
Whitewater Magpie Ltd.
© 2025
Static Site Generation timestamp: 2025-08-12T07:18:43Z