Forums

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

Is possible to validating if this value custom field is found in get to Rest API from JSM?

Rogerio
Contributor
May 7, 2025

Hi,

I need to validate a field value integrating the values in Rest API, for example, I create the Code project and when the user is creating a request. I would like to validating if this value is found in get to Rest API.

This get in Rest API, return a Code project record in other system.
It's possible?
Could you help me about this?

kind regards,

1 answer

1 accepted

3 votes
Answer accepted
Mikael Sandberg
Community Champion
May 7, 2025

Yes, that is possible and you can use smart value compare to do it. The returned result can be accessed using {{webResponse}} and you can then use the dot notation in order to get the value. You can have a look at this article that I wrote about incoming webbhook and using smart values.

Rogerio
Contributor
May 9, 2025

Hi @Mikael Sandberg ,

First, thanks for your help.

Now, do you know if I can stoping the create issue process when the Send Web Request return with to the invalid value to custom field?

Because, I would like to stop the create issue e send a alert to user.

 

kind regards,

 

Rogerio

Mikael Sandberg
Community Champion
May 9, 2025

What exactly are you trying to do? Are you saying you want to prevent someone from creating a work item in a project based on the returned value from a API call? If that is the case then the answer is no, that cannot be done since automations are executed after something happens, like create work item.

Rogerio
Contributor
May 9, 2025

Hi @Mikael Sandberg ,

 

So, I am creating a portal JSM and I creating a custom field to called code project and name project. I need to validate the project values and if possible not permit to create the request or incident when the values are mistakes.

 

The code project and name project are storage in other systems. I can to get the values using Rest API.

But When the values are mistakes I can't to stopping the create request.

 

Do you understand me?

 

Thanks and kind regards,

 

Rogerio

 

Suggest an answer

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

Atlassian Community Events