Forums

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

what's the smart value of Pargraph?

吴昊 October 25, 2022

Hello, I'm trying to find the smart value of Paragraph field, followed by this article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/, I have tried

{custom_field_id}.text

{custom_field_id}.value

{custom_field_id}.content[0].text

{custom_field_id}.content[0].content[0].text

but none of them worked.

How to get the value of a Paragraph field in Jira Automation? Thanks, really confused.

1 answer

1 accepted

1 vote
Answer accepted
Benjamin
Community Champion
October 25, 2022

HI @吴昊 ,

 

Follow this page on how to display custom field values and properties. Search for custom field on the page.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

 

-Ben

吴昊 October 25, 2022

I tried the properties suggested in this page:
Available properties

  • {{issue.[Custom Field].id}} - Returns the unique id for the field assigned by Jira. It is better to use this than name as it cannot be changed.
  • {{issue.[Custom Field].description}} - Returns the text displayed below the custom field viewed in the Simple Search column.
  • {{issue.[Custom Field].name}} - Returns the visible label displayed on the left of the field.
  • {{issue.[Custom Field].defaultValue}} - Returns the value displayed on first view of the field.

But return empty

The customfield displayed in https://shoplazza.atlassian.net/rest/api/3/issue/{ISSUE-KEY}?expand=names :

"customfield_10673": {

    "version": 1,

    "type": "doc",

    "content": [

        {

            "type": "paragraph",

            "content": [

            {

                "type": "text",

                "text": "www.example.biz/foo.js"

            },

        {

            "type": "hardBreak"

        },

        {

            "type": "text",

            "text": "www.example.biz/foo.js"

        }

    ]

    }

    ]

},

Benjamin
Community Champion
October 25, 2022

Did you use the example shown below in the section?

 

issue.{custom Field Name}

吴昊 October 25, 2022

Thanks, this worked!

Like Benjamin likes this
Benjamin
Community Champion
October 26, 2022

That's great to hear. Please accept the answer so that other communities can easily search for the solution/answer when running into similar issue. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events