Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Link with Azure Logc App

Alex Kwarts January 4, 2020

I am using Azure Logic Apps to communicate between Dynamics CRM and Jira. Everything works fine I can create/update bi-directional but.... I am not able to create a (CRM Case ID) hyperlink in a custom field. I now insert the very long complete link. It would be nice to just have a short descriptive hyperlink instead

I found the following but that doesn't work

[Atlassian|http://atlassian.com]

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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 4, 2020

What type of field are you trying to add the link to, and what error message are you getting?  Also, what happens when you try to add the link "manually"?  (By typing or pasting it into the field in the Jira UI)

Alex Kwarts January 5, 2020

I am adding it into a custom text field, custom field_10500 see HTTP input below. When I paste manually it's not converted to a link but shows as plain text like:

[Atlassian|http://atlassian.com]

The problem is that I don't have much control about forming the HTTP input because that's all being handled by the Logic App. In debug mode I can see the input for posting the Jira Issue and it looks like this:

{    "uri""https://jira.haynespro.com/rest/api/2/issue/",    "method""POST",    "headers": {        "Authorization""*sanitized*",        "Content-Type""application/json"    },    "body": {        "fields": {            "customfield_10500""https://haynespro.XXXXXXXXXXXXXXX",            "customfield_10502"" 2f753877-942f-ea11-a810-000d3ab85773",            "description""Test 1",            "issuetype": {                "name""Bug"            },            "project": {                "key""CS"            },            "summary""Test 1"        }    }} 

 

Instead of "https://haynespro.XXXXXXXXXXXXXXX" I have to create the link.

Nic Brough -Adaptavist-
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 5, 2020

Links are stored as markup in text fields, you'll need the Logic app to send markup instead of plain text

Alex Kwarts January 5, 2020

I found out that when I send the string [Foo bar|http://www.example.com] to the Jira issue description field it works, when I send it to my custom field it doesn't work.

I also noticed that when I edit the description field, the field gets bigger and it shows a header with editing tools. When I edit the custom field nothing changes it's just an ordinary text field. So I believe it is the type of field that has to change. I did some research but don't see how I can make the custom field behave like a text editing field.

Suggest an answer

Log in or Sign up to answer