Forums

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

The custom field type URL won't return a smart value

Olga Buslovich
Contributor
October 5, 2022

Im trying to use a custom field smart value in the email and for some reason it's not set or the field is not configured properly.

For Exp, the custom field that im using is  "customfield_10945": "PRD URL", and this is how it shows in  the following URL to view the JSON representation of JIRA issue:

 https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names

 "customfield_10945": "https://fyuse.atlassian.net/wiki/spaces/PROD/pages/26181633/PRD+Support+for+Interior+360+in+Freestyle+Session"

So when I use the field smart value like this  {{customfield_10942.value}} it doesn't return anything.

However, when I tried the other custom field that shows in " /?expand=names JSON" as follows (see below) it works. I.e. It returns  "Requires Android Review".

    

"customfield_10942": [

      {

        "self": "https://fyuse.atlassian.net/customFieldOption/10237",

        "value": "Requires Android Review",

        "id": "10237"

 

So I think b/c the custom field "customfield_10945" is configured as URL and there is no property such as Value for these type of custom fields.

Can someone help me to get it work, plz?

 

Thanks in advance ,

Olga Buslovich

2 answers

2 accepted

0 votes
Answer accepted
Olga Buslovich
Contributor
October 6, 2022

YES, IT WORKS -  MANY THANKS , @Mohamed Benziane  !!!

0 votes
Answer accepted
Mohamed Benziane
Community Champion
October 6, 2022

Hi,

Can you try this:

{{issue.customfield_10942}}

Olga Buslovich
Contributor
October 6, 2022

YES , It works - MANY THANKS @Mohamed Benziane !!!

Like Mohamed Benziane likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events