public/api-v2/system/Invoke-JiraGetApplicationProperty.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-application-properties-get function Invoke-JiraGetApplicationProperty { [CmdletBinding(DefaultParameterSetName="Key")] param ( # The key of the property to return [Parameter(ParameterSetName="Key",Position=0)] [string] $Key, # The key of the property to return [Parameter(Mandatory,ParameterSetName="Filter",Position=0)] [string] $KeyFilter, # Require that all properties returned have this permission level [Parameter(Position=1)] [string] $PermissionLevel, # The JiraContext object to use for the request [Parameter()] [object] $JiraContext ) process { $functionPath = "/rest/api/2/application-properties" $verb = "GET" $query = New-PACRestMethodQueryParams if($PSBoundParameters.ContainsKey("Key")){$query.Add("key",$Key)} if($PSBoundParameters.ContainsKey("KeyFilter")){$query.Add("keyFilter",$KeyFilter)} if($PSBoundParameters.ContainsKey("PermissionLevel")){$query.Add("permissionLevel",$PermissionLevel)} $method = New-PACRestMethod $functionPath $verb $query $method.Invoke($JiraContext) } } |