We have a process for creating a project from a request that I created a Fusion scenario for. Usually I do this manually for the user (we turned off manual project creations for our users since we automate them from another platform in) as it requires making a copy of the automated project. I then post on the attached project custom form the request URL and the parent project URL and tag it so we know where the request came from and what project it was created/mirrored from. I was stuck with what logic to use to generate the URL, I do get the ID of the request and the ID of the parent project within the scenario so I assume it's some form of concatenation of the WF URL and replacing where that ID would be with that value but it wasn't working as I am a bit of a baby developer. Here is what it would normally look like:
REQUEST: URL
PARENT PROJECT: URL
Any thoughts to what this would look like coded in Fusion?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Thanks Sven I actually figured out from a post here that I needed to use JSON because it's a paragraph text field.
I was able to use an AI tool to help me craft the JSON into different blocks for the bolded title, name of the request, and project and making those names hyperlinks which is working great. I even added in who requested it originally. For those who may stumble upon the thread here is the code I used in case it's helpful.
{
"blocks": [
{
"key": "uniqueKey1",
"text": "REQUEST: {{2.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 8,
"style": "BOLD"
}
],
"entityRanges": [
{
"offset": 9,
"length": 100,
"key": 0
}
],
"data": {}
},
{
"key": "uniqueKey2",
"text": " ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "uniqueKey3",
"text": "PARENT PROJECT: {{4.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 15,
"style": "BOLD"
}
],
"entityRanges": [
{
"offset": 16,
"length": 100,
"key": 1
}
],
"data": {}
},
{
"key": "uniqueKey4",
"text": " ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "uniqueKey5",
"text": "REQUESTER: {{18.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 9,
"style": "BOLD"
}
],
"entityRanges": [],
"data": {}
}
],
"entityMap": {
"0": {
"type": "LINK",
"mutability": "MUTABLE",
"data": {
"url": "https://YOURCOMPANY.sb01.workfront.com/issue/{{2.ID}}/overview"
}
},
"1": {
"type": "LINK",
"mutability": "MUTABLE",
"data": {
"url": "https://YOURCOMPANY.sb01.workfront.com/project/{{4.ID}}/tasks"
}
}
}
}
your WF URL is either
So you would just mirror what you see in WF:
The URLs to Issues are .../issue/{ID of the issue}
The URLs to projects are .../project/{ID of the project}
Suggestion: in your scenario, set a variable to the base WF URL
then wherever you need to add the link, refer to the variable and append the specific part with the ID.
Views
Replies
Total Likes
Thanks Sven I actually figured out from a post here that I needed to use JSON because it's a paragraph text field.
I was able to use an AI tool to help me craft the JSON into different blocks for the bolded title, name of the request, and project and making those names hyperlinks which is working great. I even added in who requested it originally. For those who may stumble upon the thread here is the code I used in case it's helpful.
{
"blocks": [
{
"key": "uniqueKey1",
"text": "REQUEST: {{2.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 8,
"style": "BOLD"
}
],
"entityRanges": [
{
"offset": 9,
"length": 100,
"key": 0
}
],
"data": {}
},
{
"key": "uniqueKey2",
"text": " ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "uniqueKey3",
"text": "PARENT PROJECT: {{4.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 15,
"style": "BOLD"
}
],
"entityRanges": [
{
"offset": 16,
"length": 100,
"key": 1
}
],
"data": {}
},
{
"key": "uniqueKey4",
"text": " ",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
},
{
"key": "uniqueKey5",
"text": "REQUESTER: {{18.name}}",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
"length": 9,
"style": "BOLD"
}
],
"entityRanges": [],
"data": {}
}
],
"entityMap": {
"0": {
"type": "LINK",
"mutability": "MUTABLE",
"data": {
"url": "https://YOURCOMPANY.sb01.workfront.com/issue/{{2.ID}}/overview"
}
},
"1": {
"type": "LINK",
"mutability": "MUTABLE",
"data": {
"url": "https://YOURCOMPANY.sb01.workfront.com/project/{{4.ID}}/tasks"
}
}
}
}
Views
Likes
Replies