Comments
-
That's interesting because the code should work to empty the destination issue. As you can see these lines represent the source issue and cloned issue. Issue sourceIssue = issueLink.getSourceObject() Issue clonedIssue = issueLink.getDestinationObject() And below clonedIssue's component is set. MutableIssue missue =…
-
Hi @Mithila N Bhat Yes, it is doable. Solution 1: You can define number custom fields and increment these counter fields in your workflow transitions (e.g. in-progress-counter + 1 when the issue is transitioned to 'In Progress' status). You can easily implement it and get the results in the issue navigator…
-
Just put empty ArrayList, here it is! missue.setComponent(new ArrayList()) I updated the code above as well. Hope it helps
-
Yes null might not be the case there. Instead, you may set an empty array of component.
-
Oh, I see, that's correct.
-
Do you need a second call? Can't you get customfield details using aformentioned rest method?
-
Hi @scriptIt I think it's better you share that code with us. The devil is in details.
-
Hi @Robert Egan You can use search query parameter. Try this out please: /rest/api/latest/customFields?search=cfbyname
-
That's a fantastic article @Walter Buggenhout thank you!
-
Gather seems great! I loved that, thanks for sharing @Anne Saunders
-
Hi @Sahish You should create an event listener listening "IssueLinkCreatedEvent" Here is the code that might boost your work import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.issue.IssueManager import com.atlassian.jira.issue.link.IssueLink import…
-
That's not a dumb question, that's a great question. getCustomFieldObjectsByName method returns an array as there can be multiple custom fields having the same name. Assuming you have only one, I used [0]. If you use getCustomFieldObject(10xxx) where 10xxx is the ID of the custom field, then you would not need to add that…
-
Thank you @Lars Maehlmann I loved the video :D
-
Wow, brilliant!! @Aisha M I'm glad that it worked!
-
Fingers crossed :)
-
Oh ok, it should be because of this, sorry def boardIdField = customFieldManager.getCustomFieldObjectByName("Board ID") instead, please use def boardIdField = customFieldManager.getCustomFieldObjectByName("Board ID")[0]
-
I supposed it was a listener. So, how do you define the issue variable? From above, I can see that you use the below code. def myIssue = event.issue String cFieldValue = myIssue.getCustomFieldValue(cField) That's why I asked you to use event.getIssue()
-
@Christine P. Dela Rosa I liked this musing, many thanks indeed. I'm also happy that I'm not alone with some of my thoughts. Especially the new normals (remote working) bring some problems. @Walter Buggenhout I also loved the quote: don't argue about the solution, rather agree on the problem that needs solving. Thanks
-
Please let me know if it helped :)
-
Hi, I think you used the one which is cast to MutableIssue. Can you use event.getIssue().getCustomFieldValue... instead?
-
At first glance, the code seems alright :)
-
That's totally understandable, everyone does not need to be a code geek. Below is the code how to get a number custom field value. CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager() def boardIdField = customFieldManager.getCustomFieldObjectByName("Board ID") def boardIdValue =…
-
Hmm, a project may have multiple boards, you can't pick a project's board id and add it to the DB. In this case, it is better for admin to fill in the id value manually.
-
Time flies, another month has passed. Thanks @Jimmy Seddon ! I really love the video version.
-
@Aisha M Indeed, it is doable. You can easily use a number field and the admins can paste the Board ID and update the table accordingly. But in that case, you will not have the project ID values to compare. I mean, if you want to change your script listener and check whether the issue is in the boardID values, I don't know…
-
Thanks @Nikki Zavadska _Appfire_ as usual!
-
And of course, please let me know if you have any issues with the script
-
Hi @Aisha M I'm glad that you managed to get it worked. I'd recommend using a number field to get the board ID value through a JSM ticket form. Thanks
-
Hi @Ed Smith Welcome to the Community! Unfortunately, you can't do that in an easy way. I'd recommend using an app for this. Enhancer Plugin for Jira has lots of custom fields that you can easily target this problem. - Status Entry Date Custom fields, you can create a date custom field to hold the status (specified) change…