Create a new Set<String> that contains all but one label, that is the one to be deleted.
Call LabelManager.setLabel().
or use MutableIssue to use mutableIssue.setLabels(Set<Label>)
(i don't prefer this one)
following way you can delete labels from issue
issue.getLabels();
it will return set of lables which are appended to issue from that set you can delete label if ur deleting one label you have to update remaining set using
issue.setLabels(setof labels);
if you are deleteing all labels then you have to set labels with empty set
let me know if have any question
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i cudnt find any issue.setLabes() method....however i gt came across LabelManager.setLabels()...however it takes Set<String> of label so i need to convert all labels i want to add to string
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are using jira 4.4.1 then you should get that methods, you can find the API at
http://docs.atlassian.com/jira/4.4.1/com/atlassian/jira/issue/Issue.html
still if you have questions let me know
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sory fr d discontinuity...but dere were sm priority tasks at hand...
as i said.... i have d getLabels() method....but not setLabels(set)
rather i cudnt find any setter for Issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Normally For Issue Object don't have any methods to set values. you have to use Mutable Issue to set values,
you can find that method at http://docs.atlassian.com/jira/4.4.1/com/atlassian/jira/issue/MutableIssue.html#setLabels(java.util.Set)
still if you have question let me know
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
currently m workin on 4.1 but planning to shift to 4.4 soon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which version of Jira you are using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.