Forums

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

How can I get custom field values with webhook (POST).

Deleted user July 27, 2021

I am using Jira Cloud and the custom field type is Jira user and another custom field is the date.

 

How can I get the value of both the custom fields when a certain trigger is done?

 

On the test, you can see I am not getting the value for the custom field.

CleanShot 2021-07-27 at 5.31.51@2x.png

CleanShot 2021-07-27 at 5.32.42@2x.png

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 28, 2021

Hello @[deleted] ,

The following document gives more details on the webhook operations, but Select the checkbox under the Wait for Response section noting: "Delay execution of subsequent rule actions until we've received a response for this webhook"

Once selected you can use the response data in follow-up actions in the rule.

Regards,
Earl

Deleted user July 29, 2021

Still not working after checking the wait for response button

CleanShot 2021-07-29 at 1.37.07.png

 

CleanShot 2021-07-29 at 1.39.19@2x.png

Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 2, 2021

Hi @[deleted] ,

OK, Got it!  Apologies for misunderstanding the issue.

For the account manager field, it looks like it is most likely a user picker field and you will want to use the format "{{issue.field.DisplayName" with the field name being either the Full Field name or customField_id like the following example, noting the field ID and name will be different in your case:

{
"hello" : "{{issue.key}}"
"description" : "{{issue.fields.description}}",
"user field displayed as hash ID" : "{{issue.customfield_10069}}",
"user field displayname using customField_ID" : "{{issue.customfield_10069.displayName}}",
"user field displayname using field name" : "{{issue.A_user_picker.displayName}}"
}

Additional details on user field smart value formatting can be found at the following link as a reference, noting you can output different variables like e-mail  address, display name, or account id depending on what you are looking for in the webhook:

So if your account manager custom field is named "Account Manager" it would be like this:

{
"hello" : "{{issue.key}}"
"description" : "{{issue.fields.description}}",
"account manager" : "{{issue.Account Manager.displayName}}"
}

Regards,
Earl

Suggest an answer

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

Atlassian Community Events