Forums

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

Elements Connect field formatting

Ian Fallon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2019

I'm using Elements Connect to pull information from a URL datasource.

Transformed JSON example is below

{
"fileID": "15004477",
"filename": "1422813",
"storagelocation": "/disk1/mas2019_1422813",
"owner": "adam-f",
"companyname": "Grey Advertising",
"companyID": "738"
}

I'm able to pull the storagelocation value, but is there any way to format it before assigning it to my customfield to remove the /disk1/ prefix?

It seems like this could be done with the editor component/template but I've only been able to add text, not remove or replace it.

2 answers

1 accepted

1 vote
Answer accepted
Nicolas Esteves
Contributor
December 12, 2019

Hi @Ian Fallon,

I'm afraid what you want to do is not possible for now. Indeed, in the Display Template, you can only use text and HTML. It's only possible to format the data; you can't change it.

I guess there must be some HTML tricks to truncate a text, but this is just a workaround. The real value that will be stored in the custom field will be the same; the full string.

Does that answer your question?

Kind regards,

Ian Fallon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2019

Thanks for getting back to me.

This could be a useful feature to introduce at a later date though.

Like Nicolas Esteves likes this
0 votes
Julie d_Antin _Elements_
Atlassian Partner
December 12, 2019

Hi @Ian Fallon Let me check with our Support team.

Suggest an answer

Log in or Sign up to answer