Posts

resolve ticket as fixed with python jira api -

import jira def resolve_issue(jira,issue): jira.transition_issue(issue, '5', assignee={'name': 'pm_user'}, resolution={'id': '3'},comment={'name':"resolved ticket."})) [(u'5', u'resolve issue'), (u'821', u'request info'), (u'1011', u'rejected'), (u'1031', u' duplicate ')] are available transitions. not work resolve issue fixed python jira rest api. have tried list out transitions, don't see 'fixed' resolution id. suggestions? added error below text: can not deserialize instance of java.lang.string out of start_object token at [source: n/a; line: -1, column: -1] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.commentjsonbean["body"]) i'm not sure if causing problem have wrap 'assignee' , 'resolution' changes in "fields" dict. have like: fields = { "res...

Excel conditional count -

maybe asked before, cant describe in few tags/words. i newbie excel. how can countif cells in column on condition other simple comparison? example "count cell if contains data point other cell equal something", without additional temp columns ofc , vba. related question: possible set logic function during sum in range, return added value on given cell ? example if cell contains 5 add 9 total sum otherwise -3. actually, countif function can use formulae reference such less than, greater than, on.. please refer excel (f1). examples: =countif(c4:c26,a1) the above code means count range cells in c4:c26 "equal to" value in cell a1 =countif(c4:c26,"<0.2") the above code means count range values less 0.20 =countif(c4:c26,"<"&a1) the above code means count range values less value in cell a1. with regards next question, can use simple if function combination countif function such that: =if(countif(a1:a5,5)...

java - Authorization header in aws requires signed parameter -

i have aws request call , following error while setting queue. com.amazonaws.services.sqs.model.amazonsqsexception: authorization header requir es 'signature' parameter. authorization header requires 'signedheaders' parameter/ mean? how set sign through java code ?

How to add class to to angular application using angular-cli command: 'ng generate class' without receiving error -

i'm referenceing https://www.sitepoint.com/ultimate-angular-cli-reference/ , says, to add class called 'userprofile', run : $ ng generate class user-profile when run command, installing class unable find apps in `angular-cli.json` based on this source code got error because .angular-cli.json not containg apps field. generate new sample-app , compare its .angular-cli.json one.

java - Android: SharedPreferences loses 2 of its variables after closing app -

i save couple variables via sharedpreferences without problem. however, 2 of these variables reset after restart app. think problem happens while saving, not while loading, because if change default value loading, doesnt use value, goes 0. i call method in onpause: public void savestats() { sharedpreferences pref = getsharedpreferences(shared_preferences, this.mode_private); sharedpreferences.editor editor = pref.edit(); editor.putlong(seconds_played_total_file, secondsplayedtotal); editor.putfloat(currency_gained_total_file, currencygainedtotal); editor.apply(); } and load onresum: sharedpreferences pref = getsharedpreferences(shared_preferences, this.mode_private); seconds_played_total = pref.getlong(seconds_played_total_file, 0); currency_gained_total = pref.getfloat(currency_gained_total_file, 0); the variables public , static. save , load similar public static variables without problem, 2 ones save @ onpause(). any idea? you try replac...

javascript - Create a dynamic Bar graph using Chart.js where data is from database -

Image
i have been working on issue week , more until not able achieve right output this. i working online system data project database. have table enrollment records in database. using chart.js, wanted show dynamic bar graph of yearly enrollment. bar graph works shows inaccurate result count not match right year. i noticed, happens because when year no data, other year fills year, making result wrong. what ignore empty year data or set zero. hope can understand problem, because have been searching solutions can't find right answer. <script src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.6.0/chart.min.js"></script> <script> var year = ['2000','2001','2002', '2003','2004','2005','2006','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018','2019',...

CancellationToken doesn't get triggered in the Azure Functions -

Image
i've got simple azure function: public static class mycounter { public static int _timerround = 0; public static bool _isfirst = true; [functionname("counter")] //[timeoutattribute("00:00:05")] public async static task run([timertrigger("*/10 * * * * *")]timerinfo mytimer, tracewriter log, cancellationtoken token) { try { log.info($"c# timer trigger function executed at: {datetime.utcnow}"); if (_isfirst) { log.info("cancellation token registered"); token.register(async () => { log.info("cancellation token requested"); return; }); _isfirst = false; } interlocked.increment(ref _timerround); (int = 0; < 10; i++) { log.info($"round: {_timerround}, step:...