Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Facing issue while passing Business Justification

Gopi
Regular Contributor
Regular Contributor

Hi team,

We need to pass ARS business justification in one of the Jira custom attributes.

1. Problem/error we facing is when we pass \"customfield_12345\":\"${businessJustification}\" like this, I'm getting error like (message":"Unexpected character ('b' (code 98)): was expecting comma to separate Object entries\n at) \"customfield_12345\":\" testing<br/><span class=\"busjustformattask\">\",  this in logs.

To overcome this we used this code \"customfield_12345\":\"${businessJustification==null || businessJustification==''?'':businessJustification.replace('<br/><span class=\"busjustformattask\">','')}\", this is working fine with/without business justification but when I raise request in ARS say for Eg I give Business justification like line by next line I'm getting this error ("message":"Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n) \"customfield_12345\":\" Need access\nTesting\".

So how we can overcome this issue? Please provide any inputs for this.

2. Also when we run the provision job to create a ticket we see the ticket number in the Provisioning metadata at the initial time, but when we run the provision 2nd time it doesn't show the ticket number in the Provisioning metadata instead it shows the ticket status.

Regards,

Gopi.

2 REPLIES 2

Manu269
All-Star
All-Star

Did you check this : Developers Handbook (saviyntcloud.com)

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

Gopi
Regular Contributor
Regular Contributor

Hi @Manu269 ,

I checked this Developer guide. It says to use ${businessJustification}  but when I use this it adds additional html contents to it like below.

\"customfield_14047\":\" Need access for testing<br/><span class=\"busjustformattask\">\",

Due to this, it throws an error that says Specify valid customfield.

Regards,

Gopi.