Comments (4)
Hi! Sorry for the delayed response to this; I've had a lot of RL changes recently that have kept me busy.
I hadn't initially designed Set-JiraIssue to accept comments, as that was sort of the purpose of Add-JiraIssueComment, but your use case does make sense.
Are there a lot of fields that trigger this behavior, or is the comment field the primary one you've noticed? If that's the biggest offender, we may be able to add a handler specific to comments in the Fields hashtable.
Your idea for a FieldOperation parameter is a good one, but we'd have to have a way of associating a specific operation with a specific field - or just assume that all fields will use the same operation in a single call. That might take a bit more thought...perhaps a nested hashtable?
$fields = @{
comment = @{
add = 'Another insightful comment'
}
}
Get-JiraIssue -Key "Test01" | Set-JiraIssue -Fields $fields
from jiraps.
I still see the use in this feature, but I haven't figured out a good way to do so. I'm adding the "help wanted" tag to see if anyone else wants to chime in with some ideas.
from jiraps.
No worries. I was thinking of a child object something along the lines of PSJiraField that would be a hashtable containing the FieldName and ApiMethodType (Add, Edit, Update, etc). What I am debating is whether or not this becomes too brittle in the long term.
from jiraps.
@replicaJunction
I see it as to cumbersome to handle comments in this command.
Making the fields has contain the operation add a new layer of complexity only for the comments to benefit from it.
Also, this only usecase this works well is adding a new comment. But that is not was Set-
is supposed to do. It is supposed to be able to change the comment (edit).
I recommend adding a line to remove the comment element from the hash, if present and only allow for comments to be managed by dedicated functions.
from jiraps.
Related Issues (20)
- Get JiraIssue Transaction History
- Get-JiraIssueEditMetadata has no -Project parameter. Get-JiraIssueEditMetadata does
- Is JiraPS abandoned? HOT 2
- New-JiraIssue with Components failing from June, 2023
- new-jiraissue - Deserialize issue
- Getting "For security reasons Jira requires you to log on to the website before continuing", even with PAT (personal access token) HOT 1
- Cloud? HOT 1
- Add-JiraIssueComment - Remove role name restrictions HOT 1
- Issue with New-JiraIssue cmdlet after Jira Update (JIRA Service Management Application v5.4.12, Jira V9.4.12)
- Invoke-JiraMethod - Add-Member : Cannot add a member with the name "toString" because a member with that name already exists.
- Add JIRA changelog support
- Allow Custom Server URL HOT 1
- Get-JiraIssueCreateMetadata use outdated endpoint HOT 2
- Unable to install JiraPS or ConfluencePS HOT 3
- Make JiraPS Module compatible with Atlassian BYOK
- Invoke-WebRequest from JiraPS does not use MaximumRetryCount
- Get-JiraIssue forces -TimeSpent to use Days.
- Improve `New-JiraSession`/`Invoke-JiraMethod` behavior with PATs
- Set-JiraUser with Property parameter fails with error 'Invoke-JiraMethod : No value found to be changed.' HOT 1
- Import-Module JiraPS - This script contains malicious content and has been blocked by your antivirus software
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jiraps.