Add multiple transforms filter in structure using scriptrunner

Jaspreet Kaur September 7, 2020

Hello Team,

Thanks in Advance.

I want to add multiple filter (quick-filter) in structure.

image.pngI had use below code but it rewrites:

def quickFilter = [
"module": CoreStructureGenerators.FILTER_JQL,
"params": [
(CoreGeneratorParameters.JQL): "status != Closed",
],
"key": 'filter',
"quick": [
"id": "-${structureId}-1",
"name": "Show non-Closed issues"
]
]

// Warning! The existing quick transformations in the structure will be overwritten!
propertyService.setValue(structureId, "quick-transforms", JsonOutput.toJson([quickFilter]))

1 answer

0 votes
Stepan Kholodov _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 7, 2020

Hello Jaspreet,

For questions regarding non-standard Structure functionality and custom development, please contact us directly at support.almworks.com and we will connect you with our Solutions team for consulting on the matter.

Best regards,
Stepan Kholodov
ALM Works

Jaspreet Kaur September 7, 2020

thanks @Stepan Kholodov _ALM Works_ i had uploaded the problem, but no-one responding. can you please suggest some function to do , need this solution on urgent basis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events