How do I generate a list of all items in a sprint that are blocked and the reason recorded for why they were blocked?
Date : March 29 2020, 07:55 AM
I hope this helps . BlockedReason was introduced in version 1.38 of WS API, which is beyond the latest version of AppSDK 1.33. There is a way to specify a WS API version beyond that point by using rallyDataSource.setApiVersion("1.43");
<script type="text/javascript" src="https://rally1.rallydev.com/apps/1.33/sdk.js"></script>
function tableExample() {
var rallyDataSource = new rally.sdk.data.RallyDataSource('1111','2222','false','false'); //use valid workspace project OIDs if running outside of Rally
rallyDataSource.setApiVersion("1.43");
function itemQuery() {
var queryObject = {
key: "t",
type: "task",
fetch: "FormattedID,Name,State,Blocked,BlockedReason",
query: "(State = In-Progress)"
};
rallyDataSource.findAll(queryObject, populateTable);
}
function populateTable(results) {
var rankIx = 1;
for (var i=0; i < results.t.length; i++, rankIx++) {
results.t[i].Ranking = rankIx;
}
var tableDiv = document.getElementById('aDiv');
var config = { columns:
[{key: 'Ranking', header: '#', width: 20},
{key: 'FormattedID', header: 'Formatted ID', width: 100},
{key: 'Name'},
{key: 'BlockedReason', header: 'Blocked Reason', width: 200},
{key: 'State'}]};
var table = new rally.sdk.ui.Table(config);
table.addRows(results.t);
table.display(tableDiv);
};
itemQuery();
}
rally.addOnLoad(tableExample);
|
Javascript NoGray Calendar find next available date after chosen blocked dates if today is blocked
Date : March 29 2020, 07:55 AM
wish helps you You can use the method is_selectable http://www.nogray.com/api/calendar/is_selectable.php to check if the dates are selectable or not. The is_selectable returns an array [true|false, 'reason']. Below is a quick example my_cal1 = new ng.Calendar({
input: {date:'date1', month:'month1', year:'year1'},
selected_date:new Date(),
display_date:new Date(),
dates_off:[{date:22, month:6}], // you were messing a ] here
events: {
onDateClick: function(dt){
this.select_date(dt);
},
// code to check if the start date is selectable
onLoad: function(){
var st_dt = this.get_start_date().clone();
while(!this.is_selectable(st_dt)[0]){
st_dt = st_dt.from_string('today + 1');
}
// checking if no dates are selected
if (!ng.defined(this.get_selected_date())){
this.select_date(st_dt);
}
this.set_start_date(st_dt);
}
}
});
|
Calling exec() or spawn(P_OVERLAY) unblocks the console; any way to keep the console blocked?
Tag : c , By : Steven Weber
Date : March 29 2020, 07:55 AM
it should still fix some issue No, there is no way to do this - if you want cmd.exe to wait for your child to exit, then you need to wait for your child to exit. The reason is that when cmd.exe launches your process it receives a process handle; it then waits for that process handle to become signaled. Most other parents (for example, the C runtime library) will behave the same way. Process handles are signaled when the process they refer to exits, and there is no way to change that behaviour.
|
maven `exec:exec` fails but `exec:java` succeeds
Tag : maven , By : noboruwatanabe
Date : March 29 2020, 07:55 AM
help you fix your problem in your pom you have the name of your executable: exec And the name "exec" is not a valid executable name. You configure your goal there: <execution>
<id>bar</id>
<goals>
<goal>exec</goal>
</goals>
</execution>
|
Cordova Exec blocked the main thread even after usage of CordovaInterface.getThreadPool()
Date : March 29 2020, 07:55 AM
|