...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Read data of the grid. @param issueId - id of the issue where rows should be added @param customFieldId - id of the grid custom field where data should be read from @param user - Jira user which will be used to control permissions @param columnIds - set of columns' ids to filter columns for the returned result @return object of Grid meta data and rows GridFieldData readFieldData(Long issueId, CustomFieldId customFieldId, ApplicationUser user, Set<String> columnIds); |
...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Add rows to the grid. @param issueId - id of the issue where rows should be added @param customFieldId - id of the grid custom field where data should be added @param rows - list of maps with columns' ids and values @param user - Jira user which will be used to control permissions @return list of rows' ids List<String> addRows(Long issueId, CustomFieldId customFieldId, List<Map<String, Object>> rows, ApplicationUser user); |
...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Update rows of the grid. @param issueId - id of the issue where rows should be added @param customFieldId - id of the grid custom field where data should be added @param changes - list object that represent changes for specific rows @param user - Jira user which will be used to control permissions void updateRows(Long issueId, CustomFieldId customFieldId, List<GridRow> changes, ApplicationUser user); |
...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
public class GridRow { private String rowId; private Map<String, Object> columns; private Long order; public GridRow() {} public GridRow(String rowId, Map<String, Object> columns) { this.rowId = rowId; this.columns = columns; } public GridRow(String rowId, Map<String, Object> columns, Long order) { this.rowId = rowId; this.columns = columns; this.order = order; } ... } |
...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
public class GridFieldData { private String customFieldId; private String description; private List<GridRow> rows; public GridFieldData() {} ... } |
...