Wildcards for AppleScript in Radar

I'm writing an AppleScript that should go through each radar that has my project name in the "component" field. When I do this search in Radar, I use % characters as wildcards and it works fine eg "%projectName%".

When I try the same thing in AppleScript using the FindProblem function:

FindProblem componentName "Radar" componentVersion "6.1" state "2" additionalWhereClause ....

Returns zero items.

Any ideas how I can run the search I need?

Thanks in advance,

Dave

Current Pro Desktops

Posted on Dec 13, 2018 10:57 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 20, 2018 12:53 PM

ok, I should close this topic. Thanks to the users who looked at it.


The fix (work-around) was to not use wildcards. Instead, I used Radar to find the parent component. Then I searched for that higher component (with no wildcards) and added an optional command at the end to make it return all subs. The result is cleaner.


Here is the final version:

set stringOfRadars to FindProblem componentName "foo_Top" componentVersion "" state "=2,3,4,5,6" additionalWhereClause "" with includeSubs and returnIDsOnly

4 replies
Question marked as Top-ranking reply

Dec 20, 2018 12:53 PM in response to rccharles

ok, I should close this topic. Thanks to the users who looked at it.


The fix (work-around) was to not use wildcards. Instead, I used Radar to find the parent component. Then I searched for that higher component (with no wildcards) and added an optional command at the end to make it return all subs. The result is cleaner.


Here is the final version:

set stringOfRadars to FindProblem componentName "foo_Top" componentVersion "" state "=2,3,4,5,6" additionalWhereClause "" with includeSubs and returnIDsOnly

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wildcards for AppleScript in Radar

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.