copy request summary if description is empty

Oswaldo Peña Perilla September 8, 2022

I need to copy the summary value if the description is empty, I'm using the Scriptrunner post function for Copy field values ​​but conditional on the description being empty and I can't get it.

What value should I add to the condition?

 

1 answer

1 accepted

2 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 2022

Hi @Oswaldo Peña Perilla  Apply Condition in Post function :- 

If Description is null, Summary copied to Desc

If description is not null , no action performed

issue.description == null

Are you applying post function on create issue transition ? 

Thanks

V.Y

Oswaldo Peña Perilla September 8, 2022

Hi Vikrant, 

Are you applying post function on create issue transition ? 

Yes, I will apply it in the creation of the requests, I will implement it because the mail handler that contains the #renderDescription($!issue) context and when there is no description it generates garbage like this

96 Empty Template
EXTERNAL EMAIL: Do not click links or open attachments unless you recognize the sender and know the content is safe.

<="" a="">

!data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANsAAABuCAIAAAAh5vHRAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAADO7SURBVHhe7Z0HYJXV2fjvvRlkMGVvRCFRnHVb
/621tdpWv27rKCqO2n72q1ZRy1AEgoyQPW8mSSCAIBuRIZswE5IAYe+dhBCy7/7/nnNCGuMoNTeW
0Pv6cH3ve8857znP+Z3nec55z70xuDyHmw6n01l/5jmacQiRZz7/PGfkyG2jR3vkymXL6NFbkVGj
NowfV7J3v9bmyaVLN44axfUdX0rvkW8WCIRDdChEbn777UkGQ6RHrliiDIYwgyFCyTiDYffcecKj
07HhtddC1Eexl5MhjTN65OsEAuGwnsitI0ei2XiPXLEkGIyxBmOcUc6ndOhQtGCxEOmw5/z971MV
jkkGY7zBRLKEL+X1yFcKBMKhh8hvKVdGpJeHyCsXD5HNEg+RbhcPkc0SD5FuFw+RzRIPkW4XD5HN

 

Suggest an answer

Log in or Sign up to answer