Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get issue id of last created issue, and check issue type

-
Contributor
November 30, 2020

Referencing the round robin assignment script from adaptavist library:https://library.adaptavist.com/entity/round-robin-assign-issue-to-users-in-a-certain-project-role, I want to get the last issue created in a project, but i also want to focus in on a certain issue type. 

Here's what I changed in the script:

def lastIssueIdWithAssignee = issueManager.getIssueIdsForProject(issue.projectObject.id)
.sort()
.reverse()
.find {issue.getAsString("issuetype") == "Certification" }

So with this, I thought I'd be able to find the last Certification issue created in that project, but this doesn't seem to be the case...because the assignee keeps defaulting to the first user listed in the user key array.

Is there anything wrong with the change I made to the script?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 18, 2020

A folder is a place to keep a collection of related things, a dataset is a pile of data that is to be used during testing.

Liza Lara
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2020

but on my current view when I add a dataset in the configuration, I can ONLY see the column name and I don't have an idea where to put the actual test data. Could you help on this?

DataSet.JPG

Sri Poorna Poranki
September 21, 2020

If we add some folder as given below, how does it reflect in TM4J, I am not seeing the created one anywhere in project.

Customfolder.PNG

TAGS
AUG Leaders

Atlassian Community Events