Skip to content

Commit

Permalink
Add wikifyDescription param to IssuesService.GetIssues() #64 (#65)
Browse files Browse the repository at this point in the history
* Add wikifyDescription param to IssuesService.GetIssues() #64

* Increment version
  • Loading branch information
maartenba authored Oct 26, 2017
1 parent de88276 commit 51a37dd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions YouTrackSharp.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">YouTrackSharp</s:String>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AFTER_TYPECAST_PARENTHESES/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/USE_INDENT_FROM_VS/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpAttributeForSingleLineMethodUpgrade/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAddAccessorOwnerDeclarationBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateThisQualifierSettings/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
9 changes: 6 additions & 3 deletions src/YouTrackSharp/Issues/IssuesService.Querying.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ public async Task<ICollection<Issue>> GetIssuesInProject(string projectId, strin
/// <remarks>Uses the REST API <a href="https://www.jetbrains.com/help/youtrack/standalone/Get-the-List-of-Issues.html">Get the List of Issues</a>.</remarks>
/// <param name="filter">Apply a filter to issues.</param>
/// <param name="skip">The number of issues to skip before getting a list of issues.</param>
/// <param name="take">Maximum number of issues to be returned. Defaults to the server-side default of the YouTrack server instance..</param>
/// <param name="take">Maximum number of issues to be returned. Defaults to the server-side default of the YouTrack server instance.</param>
/// <param name="wikifyDescription">If set to <value>true</value>, then issue description in the response will be formatted ("wikified"). Defaults to <value>false</value>.</param>
/// <returns>A <see cref="T:System.Collections.Generic.ICollection`1" /> of <see cref="Issue" /> that match the specified parameters.</returns>
/// <exception cref="T:System.Net.HttpRequestException">When the call to the remote YouTrack server instance failed.</exception>
public async Task<ICollection<Issue>> GetIssues(string filter = null, int? skip = null, int? take = null)
public async Task<ICollection<Issue>> GetIssues(string filter = null, int? skip = null, int? take = null, bool wikifyDescription = false)
{
var queryString = new List<string>(6);
var queryString = new List<string>(4);
if (!string.IsNullOrEmpty(filter))
{
queryString.Add($"filter={WebUtility.UrlEncode(filter)}");
Expand All @@ -90,6 +91,8 @@ public async Task<ICollection<Issue>> GetIssues(string filter = null, int? skip
{
queryString.Add($"max={take}");
}

queryString.Add($"wikifyDescription={wikifyDescription}");

var query = string.Join("&", queryString);

Expand Down
2 changes: 1 addition & 1 deletion src/YouTrackSharp/YouTrackSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Copyright>JetBrains</Copyright>
<RepositoryUrl>https://github.com/JetBrains/YouTrackSharp.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<VersionPrefix>3.2.1</VersionPrefix>
<VersionPrefix>3.2.2</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
Expand Down
2 changes: 1 addition & 1 deletion tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/JetBrains/YouTrackSharp/master/logo.png</PackageIconUrl>
<RepositoryUrl>https://github.com/JetBrains/YouTrackSharp.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Version>3.2.1</Version>
<Version>3.2.2</Version>
<IsPackable>False</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit 51a37dd

Please sign in to comment.